| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | final class SymfonyPurger implements PurgerInterface |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var StoreAwareKernelInterface |
||
| 27 | */ |
||
| 28 | private $kernel; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param StoreAwareKernelInterface $kernel |
||
| 32 | */ |
||
| 33 | public function __construct(StoreAwareKernelInterface $kernel) |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function purge(array $iris) |
||
| 63 |
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.