| Total Complexity | 8 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 93.75% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class EventCollector implements EventCollectorInterface, IndexCollectorInterface |
||
| 14 | { |
||
| 15 | use CollectorTrait; |
||
| 16 | |||
| 17 | private array $events = []; |
||
| 18 | |||
| 19 | 1 | public function getCollected(): array |
|
| 22 | } |
||
| 23 | |||
| 24 | 1 | public function collect(object $event, string $line): void |
|
| 35 | } |
||
| 36 | |||
| 37 | 1 | private function collectEvent(object $event, $line): void |
|
| 45 | ]; |
||
| 46 | } |
||
| 47 | |||
| 48 | 1 | #[ArrayShape(['totalEvents' => 'int'])] |
|
| 49 | public function getIndexData(): array |
||
| 50 | { |
||
| 51 | return [ |
||
| 52 | 1 | 'totalEvents' => count($this->events), |
|
| 53 | ]; |
||
| 54 | } |
||
| 55 | |||
| 56 | 1 | private function reset(): void |
|
| 59 | } |
||
| 60 | } |
||
| 61 |
This check looks for private methods that have been defined, but are not used inside the class.