| 1 | <?php |
||
| 13 | class SsrRender implements SsrRenderInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var BaracoaInterface |
||
| 17 | */ |
||
| 18 | private $baracoa; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * SsrRender constructor. |
||
| 22 | * |
||
| 23 | * @param BaracoaInterface $baracoa |
||
| 24 | */ |
||
| 25 | 1 | public function __construct(BaracoaInterface $baracoa) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | 1 | public function render(Ssr $ssr, array $parameters) |
|
| 41 | |||
| 42 | 1 | private function filter(array $keys, array $parameters) |
|
| 57 | } |
||
| 58 |
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.