Passed
Push — main ( 72ed59...7b3af7 )
by Sammy
01:55
created
src/Grammar/Predicate.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -112,8 +112,9 @@  discard block
 block discarded – undo
112 112
      */
113 113
     private function bindLabel(string $prefix = null): string
114 114
     {
115
-        if ($this->bind_label !== null)
116
-            return $this->bind_label;
115
+        if ($this->bind_label !== null) {
116
+                    return $this->bind_label;
117
+        }
117 118
 
118 119
         if (is_string($this->right)) {
119 120
             $this->bind_label = $this->right;
@@ -123,8 +124,9 @@  discard block
 block discarded – undo
123 124
             $this->bind_label = $this->left;
124 125
         }
125 126
 
126
-        if ($prefix !== null)
127
-            $this->bind_label = $prefix . '_' . $this->bind_label;
127
+        if ($prefix !== null) {
128
+                    $this->bind_label = $prefix . '_' . $this->bind_label;
129
+        }
128 130
 
129 131
         return $this->bind_label;
130 132
     }
Please login to merge, or discard this patch.
src/Grammar/Clause/Where.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,10 +12,11 @@
 block discarded – undo
12 12
     {
13 13
         if ($predicates !== null){
14 14
             foreach ($predicates as $predicate) {
15
-                if (is_string($predicate))
16
-                    $this->and($predicate);
17
-                else
18
-                    $this->and($predicate, $predicate->bindings());
15
+                if (is_string($predicate)) {
16
+                                    $this->and($predicate);
17
+                } else {
18
+                                    $this->and($predicate, $predicate->bindings());
19
+                }
19 20
             }
20 21
         }
21 22
     }
Please login to merge, or discard this patch.
src/Grammar/Query/Select.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,8 +39,9 @@  discard block
 block discarded – undo
39 39
                 Clause::LIMIT
40 40
             ] as $clause
41 41
         ) {
42
-            if($this->clause($clause) === null)
43
-                continue;
42
+            if($this->clause($clause) === null) {
43
+                            continue;
44
+            }
44 45
 
45 46
             $ret .= ' ' . $this->clause($clause);
46 47
         }
@@ -71,8 +72,9 @@  discard block
 block discarded – undo
71 72
      */
72 73
     public function selectAlso(array $setter): self
73 74
     {
74
-        if (empty($setter))
75
-            throw new \InvalidArgumentException('EMPTY_SETTER_ARRAY');
75
+        if (empty($setter)) {
76
+                    throw new \InvalidArgumentException('EMPTY_SETTER_ARRAY');
77
+        }
76 78
 
77 79
         foreach ($setter as $alias => $column) {
78 80
 
Please login to merge, or discard this patch.