| Total Complexity | 6 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Create |
||
| 8 | { |
||
| 9 | |||
| 10 | private $table; |
||
| 11 | private $create; |
||
| 12 | private $result; |
||
| 13 | private $error; |
||
| 14 | private $data; |
||
| 15 | private $statements; |
||
| 16 | |||
| 17 | |||
| 18 | public function __construct() |
||
| 20 | |||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return mixed |
||
| 25 | */ |
||
| 26 | public function getResult() |
||
| 29 | } |
||
| 30 | |||
| 31 | |||
| 32 | |||
| 33 | public function create(string $table, array $data) |
||
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 45 | |||
| 46 | private function setdata() |
||
| 66 | } |
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.