Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | protected function replaceBindings($sql, array $bindings) |
||
18 | { |
||
19 | $regex = $this->getRegex(); |
||
20 | |||
21 | foreach ($this->formatBindings($bindings) as $key => $binding) { |
||
22 | $value = is_numeric($binding) ? $binding : "'" . $binding . "'"; |
||
23 | $sql = preg_replace($regex, $value, $sql, 1); |
||
24 | } |
||
25 | |||
26 | return $sql; |
||
27 | } |
||
87 |