Conditions | 5 |
Paths | 4 |
Total Lines | 20 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | protected function bindPendingParams(): void |
||
16 | { |
||
17 | $paramsPassedByReference = []; |
||
18 | $pdoStatement = $this->getPdoStatement(); |
||
19 | |||
20 | foreach ($this->pendingParams as $name => $value) { |
||
21 | if (PDO::PARAM_STR === $value[1] && $pdoStatement !== null) { |
||
22 | $paramsPassedByReference[$name] = $value[0]; |
||
23 | $pdoStatement->bindParam( |
||
24 | $name, |
||
25 | $paramsPassedByReference[$name], |
||
26 | $value[1], |
||
27 | strlen($value[0]) |
||
28 | ); |
||
29 | } elseif ($pdoStatement !== null) { |
||
30 | $pdoStatement->bindValue($name, $value[0], $value[1]); |
||
31 | } |
||
32 | } |
||
33 | |||
34 | $this->pendingParams = []; |
||
35 | } |
||
37 |