| Conditions | 6 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 42 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function query(string $statement, int $fetch = null, $arg3 = null, $arg4 = null) |
||
| 40 | { |
||
| 41 | if ($fetch && $arg3 && $arg4) { |
||
|
|
|||
| 42 | return $this->conn->query($statement, $fetch, $arg3, $arg4); |
||
| 43 | } elseif ($fetch && $arg3) { |
||
| 44 | return $this->conn->query($statement, $fetch, $arg3); |
||
| 45 | } |
||
| 46 | return $this->conn->query($statement); |
||
| 47 | } |
||
| 54 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
integervalues, zero is a special case, in particular the following results might be unexpected: