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