@@ -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) { |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | { |
18 | 18 | private $qb; |
19 | 19 | |
20 | - public function __construct(){ |
|
20 | + public function __construct() { |
|
21 | 21 | $this->qb = new QueryBuilder(); |
22 | 22 | } |
23 | 23 | |
@@ -35,14 +35,14 @@ discard block |
||
35 | 35 | return null; |
36 | 36 | } |
37 | 37 | |
38 | - private function whereAddedCondition($conditions = []){ |
|
38 | + private function whereAddedCondition($conditions = []) { |
|
39 | 39 | return $this->whereAdded === false && count($conditions); |
40 | 40 | } |
41 | 41 | |
42 | 42 | public function buildWhereQuery($conditions = []) |
43 | 43 | { |
44 | 44 | $whereQuery = []; |
45 | - if (count($conditions)<=0) { |
|
45 | + if (count($conditions) <= 0) { |
|
46 | 46 | return []; |
47 | 47 | } |
48 | 48 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | foreach ($conditions as $where) { |
56 | 56 | $sign = '='; |
57 | 57 | $whereQueryPart = 'AND '; |
58 | - if(count($where)==3) { |
|
58 | + if (count($where) == 3) { |
|
59 | 59 | $sign = $where[1]; |
60 | 60 | } |
61 | 61 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | { |
74 | 74 | $whereRawQuery = []; |
75 | 75 | |
76 | - if (count($conditions)<=0) { |
|
76 | + if (count($conditions) <= 0) { |
|
77 | 77 | return $query; |
78 | 78 | } |
79 | 79 | |
@@ -98,11 +98,11 @@ discard block |
||
98 | 98 | return $query; |
99 | 99 | } |
100 | 100 | |
101 | - private function buildWhereInNotInQuery($conditions = [], $queryParam='IN') |
|
101 | + private function buildWhereInNotInQuery($conditions = [], $queryParam = 'IN') |
|
102 | 102 | { |
103 | 103 | $query = []; |
104 | 104 | |
105 | - if (count($conditions)<=0) { |
|
105 | + if (count($conditions) <= 0) { |
|
106 | 106 | return $query; |
107 | 107 | } |
108 | 108 | |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | { |
146 | 146 | $whereQuery = []; |
147 | 147 | |
148 | - if (count($conditions)<=0) { |
|
148 | + if (count($conditions) <= 0) { |
|
149 | 149 | return $query; |
150 | 150 | } |
151 | 151 |