@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | private function whereAddedCondition($conditions = []){ |
39 | - return $this->whereAdded === false && count($conditions); |
|
39 | + return $this->whereAdded === false && count($conditions); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | public function buildWhereQuery($conditions = []) |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | |
49 | 49 | $firstTime = true; |
50 | 50 | if ($this->whereAddedCondition($conditions)) { |
51 | - $whereQuery[] = 'WHERE'; |
|
52 | - $this->whereAdded = true; |
|
51 | + $whereQuery[] = 'WHERE'; |
|
52 | + $this->whereAdded = true; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | foreach ($conditions as $where) { |