Conditions | 5 |
Paths | 9 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
78 | protected function bindParameters( |
||
79 | \PDOStatement $stmt, |
||
80 | array $parameters |
||
81 | )/*# : bool */ { |
||
82 | foreach ($parameters as $name => &$value) { |
||
83 | $type = Types::guessType($value); |
||
84 | $param = is_int($name) ? ($name + 1) : |
||
85 | ($name[0] === ':' ? $name : (':' . $name)); |
||
86 | if (false === $stmt->bindParam($param, $value, $type)) { |
||
87 | return false; |
||
88 | } |
||
89 | } |
||
90 | return true; |
||
91 | } |
||
92 | } |
||
93 |