Passed
Push — main ( 3912a5...5eac8c )
by BRUNO
02:06
created
src/CrudBuilder.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,8 +47,9 @@  discard block
 block discarded – undo
47 47
     {
48 48
         try {
49 49
             $query = "SELECT {$fields} FROM {$this->getTable()} ";
50
-            if (!empty($this->getTableAlias()))
51
-                $query .= "AS {$this->getTableAlias()} ";
50
+            if (!empty($this->getTableAlias())) {
51
+                            $query .= "AS {$this->getTableAlias()} ";
52
+            }
52 53
             $this->add($query, "main", $paramns);
53 54
             return $this;
54 55
         } catch (\PDOException $e) {
@@ -407,8 +408,9 @@  discard block
 block discarded – undo
407 408
                 $this->sqlPartsSelect[$type] = $text;
408 409
             }
409 410
 
410
-            if (!empty($params))
411
-                $this->params = array_merge($this->params, $params);
411
+            if (!empty($params)) {
412
+                            $this->params = array_merge($this->params, $params);
413
+            }
412 414
         } catch (\PDOException $e) {
413 415
             $this->setError($e);
414 416
         }
Please login to merge, or discard this patch.