Conditions | 4 |
Paths | 5 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
23 | protected function mountAlias($alias, array $where) |
||
24 | { |
||
25 | $result = []; |
||
26 | |||
27 | foreach ($where as $key => $value) { |
||
28 | if (strpos($key, '{@}') !== false) { |
||
29 | $key = str_replace('{@}', $alias, $key); |
||
30 | } |
||
31 | |||
32 | if (is_array($value)) { |
||
33 | $value = $this->mountAlias($alias, $where); |
||
34 | } |
||
35 | |||
36 | $result[$key] = $value; |
||
37 | } |
||
38 | |||
39 | return $result; |
||
40 | } |
||
41 | } |