Passed
Push — main ( f1a9bd...dd9fcf )
by BRUNO
11:35
created
src/Crud.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     public function select(string $fields = '*', string $add = '', ?array $values = null, bool $returnModel = false, bool $debug = false)
31 31
     {
32 32
         try {
33
-            if (strlen($add) > 0) {
33
+            if (strlen($add)>0) {
34 34
                 $add = ' ' . $add;
35 35
             }
36 36
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,9 @@
 block discarded – undo
36 36
 
37 37
             $sql = "SELECT {$fields} FROM {$this->getTableName()}";
38 38
 
39
-            if (!empty($this->getTableAlias()))
40
-                $sql .= " AS {$this->getTableAlias()}";
39
+            if (!empty($this->getTableAlias())) {
40
+                            $sql .= " AS {$this->getTableAlias()}";
41
+            }
41 42
 
42 43
             $sql .= "{$add}";
43 44
 
Please login to merge, or discard this patch.