| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public static function bind(\PDOStatement &$stmt, array $params = []) |
||
| 20 | { |
||
| 21 | $binds = self::applyDefaultFilter($params); |
||
| 22 | |||
| 23 | foreach ($binds as $key => $bind) { |
||
| 24 | if ($key == 'limit' || $key == "offset") { |
||
| 25 | $stmt->bindValue(":$key", $bind, \PDO::PARAM_INT); |
||
| 26 | } else { |
||
| 27 | $stmt->bindValue(":$key", $bind); |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 31 | return $binds; |
||
| 32 | } |
||
| 56 | } |