We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 5 |
Paths | 8 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function run(string $hook, string|array $operations, array $parameters): void |
||
23 | { |
||
24 | $operations = is_array($operations) ? $operations : [$operations]; |
||
25 | foreach ($operations as $operation) { |
||
26 | if (isset($this->hooks[$operation][$hook])) { |
||
27 | foreach ($this->hooks[$operation][$hook] as $callback) { |
||
28 | $callback(...$parameters); |
||
29 | } |
||
39 |