Total Complexity | 7 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
18 | class Logger extends Injectable |
||
19 | { |
||
20 | /** |
||
21 | * Check if the logger is currently enabled or not from the config |
||
22 | */ |
||
23 | public function isEnabled(): bool |
||
24 | { |
||
25 | return ($this->config->path('app.logger') || $this->config->path('logger.enable')) |
||
26 | && $this->config->path('logger.dispatcher'); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * This action is executed before execute any action in the application |
||
31 | * Keeping a log of the dispatch event |
||
32 | */ |
||
33 | public function beforeDispatchLoop(Event $event, AbstractDispatcher $dispatcher): void |
||
54 | } |
||
55 | } |
||
58 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.