| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Changes extends AbstractQuery |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | private $options; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var QueryInterface |
||
| 20 | */ |
||
| 21 | private $query; |
||
| 22 | |||
| 23 | public function __construct( |
||
| 33 | } |
||
| 34 | |||
| 35 | // [1,[152,[[15,[[14,["booking"]],"etabs"]]]],{"binary_format":"raw","time_format":"raw","profile":false}] |
||
| 36 | // [1,[152,[[15,[[14,["test"]],"tabletest"]]],{"squash":true}],{"binary_format":"raw","time_format":"raw","profile":false}] |
||
| 37 | public function toArray(): array |
||
| 53 |
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.