| Conditions | 6 |
| Paths | 6 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function parseWhereQuery($whereQuery = []) |
||
| 32 | { |
||
| 33 | $ar = array(); |
||
| 34 | |||
| 35 | foreach ($whereQuery as $where) { |
||
| 36 | if (is_array($where[1])) { |
||
| 37 | foreach ($where[1] as $key => $value) { |
||
| 38 | $ar[':'.$key] = $value; |
||
| 39 | } |
||
| 40 | } elseif ($where[1] != '') { |
||
| 41 | $arNext = $this->prepareArrayForWhere($where[0], $where[1]); |
||
| 42 | if (count($arNext)) { |
||
| 43 | $ar = array_merge($ar, $arNext); |
||
| 44 | } |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | return $ar; |
||
| 49 | } |
||
| 56 |