@@ -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 | |
@@ -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 = array(); |
| 75 | 75 | |
| 76 | - if (count($conditions)<=0) { |
|
| 76 | + if (count($conditions) <= 0) { |
|
| 77 | 77 | return $query; |
| 78 | 78 | } |
| 79 | 79 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | { |
| 103 | 103 | $whereInQuery = array(); |
| 104 | 104 | |
| 105 | - if (count($conditions)<=0) { |
|
| 105 | + if (count($conditions) <= 0) { |
|
| 106 | 106 | return array(); |
| 107 | 107 | } |
| 108 | 108 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | { |
| 136 | 136 | $whereNotInQuery = array(); |
| 137 | 137 | |
| 138 | - if (count($conditions)<=0) { |
|
| 138 | + if (count($conditions) <= 0) { |
|
| 139 | 139 | return array(); |
| 140 | 140 | } |
| 141 | 141 | |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | $firstTime = false; |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | - $whereNotInQuery[] = $whereNotInQueryPart.trim($whereNotIn[0]).' NOT IN ('.$dataStr.')'; |
|
| 161 | + $whereNotInQuery[] = $whereNotInQueryPart.trim($whereNotIn[0]).' NOT IN ('.$dataStr.')'; |
|
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | return $whereNotInQuery; |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | { |
| 169 | 169 | $whereNullQuery = array(); |
| 170 | 170 | |
| 171 | - if (count($conditions)<=0) { |
|
| 171 | + if (count($conditions) <= 0) { |
|
| 172 | 172 | return $query; |
| 173 | 173 | } |
| 174 | 174 | |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | { |
| 199 | 199 | $whereNotNullQuery = array(); |
| 200 | 200 | |
| 201 | - if (count($conditions)<=0) { |
|
| 201 | + if (count($conditions) <= 0) { |
|
| 202 | 202 | return $query; |
| 203 | 203 | } |
| 204 | 204 | |