@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | private function whereAddedCondition($conditions = array()){ |
39 | - return $this->whereAdded === false && count($conditions); |
|
39 | + return $this->whereAdded === false && count($conditions); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | public function buildWhereQuery($conditions = array()) |
@@ -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 = array()){ |
|
38 | + private function whereAddedCondition($conditions = array()) { |
|
39 | 39 | return $this->whereAdded === false && count($conditions); |
40 | 40 | } |
41 | 41 | |
42 | 42 | public function buildWhereQuery($conditions = array()) |
43 | 43 | { |
44 | 44 | $whereQuery = array(); |
45 | - if (count($conditions)<=0) { |
|
45 | + if (count($conditions) <= 0) { |
|
46 | 46 | return array(); |
47 | 47 | } |
48 | 48 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | foreach ($conditions as $where) { |
56 | 56 | $sign = '='; |
57 | - if(count($where)==3) { |
|
57 | + if (count($where) == 3) { |
|
58 | 58 | $sign = $where[1]; |
59 | 59 | } |
60 | 60 | if ($firstTime) { |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | { |
73 | 73 | $whereRawQuery = array(); |
74 | 74 | |
75 | - if (count($conditions)<=0) { |
|
75 | + if (count($conditions) <= 0) { |
|
76 | 76 | return $query; |
77 | 77 | } |
78 | 78 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | { |
102 | 102 | $whereInQuery = array(); |
103 | 103 | |
104 | - if (count($conditions)<=0) { |
|
104 | + if (count($conditions) <= 0) { |
|
105 | 105 | return array(); |
106 | 106 | } |
107 | 107 | |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | { |
134 | 134 | $whereNotInQuery = array(); |
135 | 135 | |
136 | - if (count($conditions)<=0) { |
|
136 | + if (count($conditions) <= 0) { |
|
137 | 137 | return array(); |
138 | 138 | } |
139 | 139 | |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | { |
166 | 166 | $whereNullQuery = array(); |
167 | 167 | |
168 | - if (count($conditions)<=0) { |
|
168 | + if (count($conditions) <= 0) { |
|
169 | 169 | return $query; |
170 | 170 | } |
171 | 171 | |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | { |
195 | 195 | $whereNotNullQuery = array(); |
196 | 196 | |
197 | - if (count($conditions)<=0) { |
|
197 | + if (count($conditions) <= 0) { |
|
198 | 198 | return $query; |
199 | 199 | } |
200 | 200 |