@@ -69,15 +69,16 @@ |
||
69 | 69 | $where = call_user_func_array([$where, $method], $item); |
70 | 70 | } |
71 | 71 | if(is_string($item)){ |
72 | - if(in_array($item, $this->allowed)) |
|
73 | - if($item == 'and') |
|
72 | + if(in_array($item, $this->allowed)) { |
|
73 | + if($item == 'and') |
|
74 | 74 | $where = $where->and; |
75 | - else if ($item == 'or') |
|
76 | - $where = $where->or; |
|
77 | - else if ($item == 'nest') |
|
78 | - $where = $where->nest(); |
|
79 | - else if ($item == 'unnest') |
|
80 | - $where = $where->unnest(); |
|
75 | + } else if ($item == 'or') { |
|
76 | + $where = $where->or; |
|
77 | + } else if ($item == 'nest') { |
|
78 | + $where = $where->nest(); |
|
79 | + } else if ($item == 'unnest') { |
|
80 | + $where = $where->unnest(); |
|
81 | + } |
|
81 | 82 | } |
82 | 83 | } |
83 | 84 | return $where; |