Total Complexity | 12 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
15 | final class CommandPDO extends AbstractCommandPDO |
||
16 | { |
||
17 | /** |
||
18 | * @inheritDoc |
||
19 | */ |
||
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 | } |
||
33 | |||
34 | 267 | public function queryBuilder(): QueryBuilderInterface |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * @psalm-suppress UnusedClosureParam |
||
41 | */ |
||
42 | 255 | protected function internalExecute(string|null $rawSql): void |
|
72 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.