Issue #2403117 by alexpott: Remove unnecessary function_exists in ModuleHandler::invokeAll
parent
a042df2e2e
commit
0e989e2e1d
|
@ -392,7 +392,6 @@ class ModuleHandler implements ModuleHandlerInterface {
|
|||
$implementations = $this->getImplementations($hook);
|
||||
foreach ($implementations as $module) {
|
||||
$function = $module . '_' . $hook;
|
||||
if (function_exists($function)) {
|
||||
$result = call_user_func_array($function, $args);
|
||||
if (isset($result) && is_array($result)) {
|
||||
$return = NestedArray::mergeDeep($return, $result);
|
||||
|
@ -401,7 +400,6 @@ class ModuleHandler implements ModuleHandlerInterface {
|
|||
$return[] = $result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue