We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 9 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | final class OperationHooks |
||
| 6 | { |
||
| 7 | const BEFORE_OPERATION_SETUP = 'beforeOperationSetup'; |
||
| 8 | const AFTER_OPERATION_SETUP = 'afterOperationSetup'; |
||
| 9 | const SETUP_OPERATION_FROM_CONFIG = 'setupOperationFromConfig'; |
||
| 10 | |||
| 11 | public array $hooks = []; |
||
| 12 | |||
| 13 | public function register(string $hook, string|array $operations, callable $callback): void |
||
| 19 | } |
||
| 20 | } |
||
| 21 | |||
| 22 | public function run(string $hook, string|array $operations, array $parameters): void |
||
| 29 | } |
||
| 30 | } |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | public function has(string $hook, string $operation): bool |
||
| 39 |