Passed
Push — main ( 1ce003...914853 )
by BRUNO
01:58
created
src/CrudBuilder.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
 
150 150
     public function debug()
151 151
     {
152
-        echo $this->query.'<pre>'.print_r($this->params).'</pre>';
152
+        echo $this->query . '<pre>' . print_r($this->params) . '</pre>';
153 153
         exit;
154 154
     }
155 155
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,8 +20,9 @@  discard block
 block discarded – undo
20 20
     public function select(string $fields = "*", array $paramns = []):self
21 21
     {
22 22
         $query = "SELECT {$fields} FROM {$this->getTable()} ";
23
-        if (!empty($this->getTableAlias()))
24
-            $query .= "AS {$this->getTableAlias()} ";
23
+        if (!empty($this->getTableAlias())) {
24
+                    $query .= "AS {$this->getTableAlias()} ";
25
+        }
25 26
         $this->add($query, $paramns);
26 27
         return $this;
27 28
     }
@@ -171,8 +172,9 @@  discard block
 block discarded – undo
171 172
 
172 173
     private function add(string $text, array $params = [])
173 174
     {
174
-        if (!empty($params))
175
-            $this->params = array_merge($this->params, $params);
175
+        if (!empty($params)) {
176
+                    $this->params = array_merge($this->params, $params);
177
+        }
176 178
         $this->query .= $text;
177 179
     }
178 180
 
Please login to merge, or discard this patch.