| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class WebViewCollector implements CollectorInterface |
||
| 12 | { |
||
| 13 | use CollectorTrait; |
||
| 14 | |||
| 15 | private array $renders = []; |
||
| 16 | |||
| 17 | public function getCollected(): array |
||
| 18 | { |
||
| 19 | return $this->renders; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function collect(AfterRender $event): void |
||
| 23 | { |
||
| 24 | if (!$this->isActive()) { |
||
| 25 | return; |
||
| 26 | } |
||
| 27 | |||
| 28 | $this->renders[] = [ |
||
| 29 | 'output' => $event->getResult(), |
||
| 30 | 'file' => $event->getFile(), |
||
| 31 | 'parameters' => $event->getParameters(), |
||
| 32 | ]; |
||
| 33 | } |
||
| 34 | |||
| 35 | private function reset(): void |
||
| 38 | } |
||
| 39 | } |
||
| 40 |
This check looks for private methods that have been defined, but are not used inside the class.