| Total Complexity | 6 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 86.67% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class WithKeyword implements Component |
||
| 16 | { |
||
| 17 | /** @var ArrayObj[] */ |
||
| 18 | public array $columns = []; |
||
| 19 | |||
| 20 | public Parser|null $statement = null; |
||
| 21 | |||
| 22 | 50 | public function __construct(public string $name) |
|
| 23 | { |
||
| 24 | 50 | } |
|
| 25 | |||
| 26 | 12 | public function build(): string |
|
| 47 | } |
||
| 48 | |||
| 49 | public function __toString(): string |
||
| 54 |
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.