| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Extension extends InlineNode |
||
| 10 | { |
||
| 11 | protected string $type = 'extension'; |
||
| 12 | private string $layout; |
||
| 13 | private string $extensionType; |
||
| 14 | private string $extensionKey; |
||
| 15 | private array $parameters; |
||
| 16 | private string $localId; |
||
| 17 | |||
| 18 | public function __construct( |
||
| 30 | } |
||
| 31 | |||
| 32 | protected function attrs(): array |
||
| 46 |
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.