| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 6 | public function insertEx(string $table, array $columns): bool|array |
|
| 20 | { |
||
| 21 | 6 | $params = []; |
|
| 22 | 6 | $sql = $this->queryBuilder()->insertEx($table, $columns, $params); |
|
| 23 | |||
| 24 | 6 | $this->setSql($sql)->bindValues($params); |
|
| 25 | 6 | $this->prepare(false); |
|
| 26 | |||
| 27 | /** @psalm-var array|bool $result */ |
||
| 28 | 6 | $result = $this->queryOne(); |
|
| 29 | |||
| 30 | 6 | return is_array($result) ? $result : false; |
|
| 31 | } |
||
| 68 |