Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 90% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class AssetCollector implements CollectorInterface, IndexCollectorInterface |
||
11 | { |
||
12 | use CollectorTrait; |
||
13 | |||
14 | private array $assetBundles = []; |
||
15 | |||
16 | 1 | public function getCollected(): array |
|
17 | { |
||
18 | 1 | return $this->assetBundles; |
|
19 | } |
||
20 | |||
21 | 1 | public function collect(AssetBundle $assetBundle): void |
|
22 | { |
||
23 | 1 | if (!$this->isActive()) { |
|
24 | return; |
||
25 | } |
||
26 | |||
27 | 1 | $this->assetBundles[] = $assetBundle; |
|
28 | } |
||
29 | |||
30 | 1 | #[ArrayShape(['totalAssetBundles' => 'int'])] |
|
35 | ]; |
||
36 | } |
||
37 | |||
38 | 1 | private function reset(): void |
|
41 | } |
||
42 | } |
||
43 |
This check looks for private methods that have been defined, but are not used inside the class.