| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | protected function prepareArrayForWhere($bindKey, $bindVal = null){ |
||
| 17 | $ar = $conditionAr = []; |
||
| 18 | // expecting a string like 'status = :status' |
||
| 19 | if ($this->checkWherePrepareUsed($bindKey)) { |
||
| 20 | $conditionAr = preg_split('/:/', $bindKey); |
||
| 21 | } |
||
| 22 | |||
| 23 | // taking the second part just after : |
||
| 24 | if (is_array($conditionAr) && count($conditionAr)) { |
||
| 25 | $ar[':'.$conditionAr[1]] = $bindVal; |
||
| 26 | } |
||
| 27 | |||
| 28 | return $ar; |
||
| 29 | } |
||
| 59 |