Passed
Push — master ( e9a662...2452cb )
by RN
01:52
created
src/Dolphin/Builders/WhereQueryBuilder.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.