Total Complexity | 12 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | final class CommandPDO extends AbstractCommandPDO |
||
14 | { |
||
15 | /** |
||
16 | * @inheritDoc |
||
17 | */ |
||
18 | 1 | public function insertEx(string $table, array $columns): bool|array |
|
19 | { |
||
20 | 1 | $params = []; |
|
21 | 1 | $sql = $this->queryBuilder()->insertEx($table, $columns, $params); |
|
22 | |||
23 | 1 | $this->setSql($sql)->bindValues($params); |
|
24 | 1 | $this->prepare(false); |
|
25 | |||
26 | /** @var mixed */ |
||
27 | 1 | $queryOne = $this->queryOne(); |
|
28 | |||
29 | 1 | return is_array($queryOne) ? $queryOne : false; |
|
30 | } |
||
31 | |||
32 | 237 | public function queryBuilder(): QueryBuilderInterface |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @psalm-suppress UnusedClosureParam |
||
39 | */ |
||
40 | 223 | protected function internalExecute(string|null $rawSql): void |
|
70 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.