| Total Complexity | 7 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class VariableDisplayParam extends Info |
||
| 10 | { |
||
| 11 | const SUBTYPE = 11; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | public $data = []; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var int |
||
| 20 | */ |
||
| 21 | protected $dataSize = 4; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param Buffer $buffer |
||
| 25 | * @throws Exception |
||
| 26 | */ |
||
| 27 | public function read(Buffer $buffer) |
||
| 50 | ]; |
||
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param Buffer $buffer |
||
| 56 | */ |
||
| 57 | public function write(Buffer $buffer) |
||
| 70 |
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.