| Total Complexity | 7 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 93.75% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class EventCollector implements EventCollectorInterface |
||
| 11 | { |
||
| 12 | use CollectorTrait; |
||
| 13 | |||
| 14 | private array $events = []; |
||
| 15 | |||
| 16 | 1 | public function getCollected(): array |
|
| 19 | } |
||
| 20 | |||
| 21 | 1 | public function collect(object $event): void |
|
| 22 | { |
||
| 23 | 1 | if (!$this->isActive( |
|
| 24 | 1 | ) && !$event instanceof WebApplicationStartup && !$event instanceof ConsoleApplicationStartup) { |
|
| 25 | return; |
||
| 26 | } |
||
| 27 | |||
| 28 | 1 | $this->collectEvent($event); |
|
| 29 | 1 | } |
|
| 30 | |||
| 31 | 1 | private function collectEvent(object $event): void |
|
| 37 | ]; |
||
| 38 | 1 | } |
|
| 39 | |||
| 40 | 1 | private function reset(): void |
|
| 43 | 1 | } |
|
| 44 | } |
||
| 45 |
This check looks for private methods that have been defined, but are not used inside the class.