| 1 | <?php |
||
| 20 | class FileBackend extends SimpleFileBackend |
||
| 21 | { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Get the number of tags |
||
| 25 | * |
||
| 26 | * @param Cache $cache |
||
| 27 | * |
||
| 28 | * @return int |
||
| 29 | */ |
||
| 30 | public function countTags(Cache $cache) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Returns the average left lifetime of the cache entries |
||
| 37 | * |
||
| 38 | * @param Cache $cache |
||
| 39 | * |
||
| 40 | * @return int|null |
||
| 41 | */ |
||
| 42 | public function getExpires(Cache $cache) |
||
| 55 | } |
||
| 56 |
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.