Passed
Push — main ( 9d8bac...887c45 )
by BRUNO
03:04
created
src/Crud.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function select(string $fields = '*', string $add = '', array $values = null, bool $returnModel = false, bool $debug = false)
29 29
     {
30
-        if (strlen($add) > 0) {
30
+        if (strlen($add)>0) {
31 31
             $add = ' ' . $add;
32 32
         }
33 33
         $sql = "SELECT {$fields} FROM {$this->getTable()}{$add}";
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $numparams = substr($numparams, 1);
60 60
         $sql = "INSERT INTO {$this->getTable()} ({$fields}) VALUES ({$numparams})";
61 61
         if ($debug) {
62
-            echo $sql.'<pre>'.print_r($values).'</pre>';
62
+            echo $sql . '<pre>' . print_r($values) . '</pre>';
63 63
             return;
64 64
         }
65 65
         $result = $this->executeSQL($sql, $values);
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             $sql .= " WHERE $where";
142 142
         }
143 143
         if ($debug) {
144
-            echo $sql.'<pre>'.print_r($values).'</pre>';
144
+            echo $sql . '<pre>' . print_r($values) . '</pre>';
145 145
             return;
146 146
         }
147 147
         $result = $this->executeSQL($sql, $values);
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
             $sql .= " WHERE $where";
217 217
         }
218 218
         if ($debug) {
219
-            echo $sql.'<pre>'.print_r($values).'</pre>';
219
+            echo $sql . '<pre>' . print_r($values) . '</pre>';
220 220
             return;
221 221
         }
222 222
         $result = $this->executeSQL($sql, $values);
Please login to merge, or discard this patch.