Passed
Push — master ( b79908...d07708 )
by RN
01:39
created
src/Dolphin/Builders/WhereQueryBuilder.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
44 44
 
45 45
         $firstTime = true;
46 46
         if ($this->whereAdded === false && count($conditions)) {
47
-          $whereQuery[] = 'WHERE';
48
-          $this->whereAdded = true;
47
+            $whereQuery[] = 'WHERE';
48
+            $this->whereAdded = true;
49 49
         }
50 50
 
51 51
         foreach ($conditions as $where) {
Please login to merge, or discard this 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
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function buildWhereQuery($conditions = array())
39 39
     {
40 40
         $whereQuery = array();
41
-        if (count($conditions)<=0) {
41
+        if (count($conditions) <= 0) {
42 42
             return array();
43 43
         }
44 44
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         foreach ($conditions as $where) {
52 52
             $sign = '=';
53
-            if(count($where)==3) {
53
+            if (count($where) == 3) {
54 54
                 $sign = $where[1];
55 55
             }
56 56
             if ($firstTime) {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     {
71 71
         $whereRawQuery = array();
72 72
 
73
-        if (count($conditions)<=0) {
73
+        if (count($conditions) <= 0) {
74 74
             return $query;
75 75
         }
76 76
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     {
100 100
         $whereInQuery = array();
101 101
 
102
-        if (count($conditions)<=0) {
102
+        if (count($conditions) <= 0) {
103 103
             return array();
104 104
         }
105 105
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     {
132 132
         $whereNotInQuery = array();
133 133
 
134
-        if (count($conditions)<=0) {
134
+        if (count($conditions) <= 0) {
135 135
             return array();
136 136
         }
137 137
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     {
164 164
         $whereNullQuery = array();
165 165
 
166
-        if (count($conditions)<=0) {
166
+        if (count($conditions) <= 0) {
167 167
             return $query;
168 168
         }
169 169
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
     {
193 193
         $whereNotNullQuery = array();
194 194
 
195
-        if (count($conditions)<=0) {
195
+        if (count($conditions) <= 0) {
196 196
             return $query;
197 197
         }
198 198
 
Please login to merge, or discard this patch.