| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 5 | public function insertEx(string $table, array $columns): bool|array |
|
| 21 | { |
||
| 22 | 5 | $params = []; |
|
| 23 | 5 | $sql = $this->queryBuilder()->insertEx($table, $columns, $params); |
|
| 24 | |||
| 25 | 5 | $this->setSql($sql)->bindValues($params); |
|
| 26 | 5 | $this->prepare(false); |
|
| 27 | |||
| 28 | /** @psalm-var array|bool */ |
||
| 29 | 5 | $result = $this->queryOne(); |
|
| 30 | |||
| 31 | 5 | return is_array($result) ? $result : false; |
|
| 32 | } |
||
| 72 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.