Conditions | 6 |
Paths | 5 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 42 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | protected function runHookAction(string $name, ...$arguments) |
||
23 | { |
||
24 | if (isset(static::$hookActions[$name]) && is_array(static::$hookActions[$name])) { |
||
25 | sort(static::$hookActions[$name]); |
||
26 | foreach (static::$hookActions[$name] as $orderedActions) { |
||
27 | foreach ($orderedActions as $action) { |
||
28 | if (is_callable($action)) { |
||
29 | call_user_func($action, ...$arguments); |
||
30 | } |
||
50 |