We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | final class PanelHooks |
||
| 6 | { |
||
| 7 | const BEFORE_SETUP_ROUTES = 'beforeSetupRoutes'; |
||
| 8 | const AFTER_SETUP_ROUTES = 'afterSetupRoutes'; |
||
| 9 | const BEFORE_SETUP_DEFAULTS = 'beforeSetupDefaults'; |
||
| 10 | const AFTER_SETUP_DEFAULTS = 'afterSetupDefaults'; |
||
| 11 | const BEFORE_CONTROLLER_SETUP = 'beforeControllerSetup'; |
||
| 12 | const AFTER_CONTROLLER_SETUP = 'afterControllerSetup'; |
||
| 13 | |||
| 14 | public array $hooks = []; |
||
| 15 | |||
| 16 | public function register(string $hook, callable $callback): void |
||
| 19 | } |
||
| 20 | |||
| 21 | public function run(string $hook, array $parameters): void |
||
| 26 | } |
||
| 27 | } |
||
| 28 | } |
||
| 29 | |||
| 30 | public function has(string $hook): bool |
||
| 35 |