Total Complexity | 6 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
12 | class DynamicPageSubscriber extends AbstractSubscriber |
||
13 | { |
||
14 | public static function getSubscribedEvents(): array |
||
19 | ] |
||
20 | ]; |
||
21 | } |
||
22 | |||
23 | public static function getSubscribedServices(): array |
||
27 | ]; |
||
28 | } |
||
29 | |||
30 | public function setComponentLocations(GetResponseForControllerResultEvent $event): void |
||
47 |
This check marks implicit conversions of arrays to boolean values in a comparison. While in PHP an empty array is considered to be equal (but not identical) to false, this is not always apparent.
Consider making the comparison explicit by using
empty(..)
or! empty(...)
instead.