Passed
Push — master ( 4bfc1b...fa90e0 )
by Nícollas
02:39
created
Source/Model/SimplePHP.class.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function where(Array $where, String $condition = 'AND'): ?SimplePHP
85 85
     {
86
-        if(is_array($where)) {
87
-            foreach($where as $enclosures) {
88
-                $this->where .= $enclosures[0]." ".$enclosures[1]." '".$enclosures[2]."' {$condition} ";
86
+        if (is_array($where)) {
87
+            foreach ($where as $enclosures) {
88
+                $this->where .= $enclosures[0] . " " . $enclosures[1] . " '" . $enclosures[2] . "' {$condition} ";
89 89
             }
90 90
             $this->where = "WHERE " . rtrim($this->where, " {$condition} ");
91 91
         }
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
     {
288 288
         $message = $pdo ? "Error: PDOCode " . $message : $message;
289 289
         $archive = fopen(dirname(__DIR__) . DIRECTORY_SEPARATOR . "Logs" . DIRECTORY_SEPARATOR . "Logs.txt", 'a+');
290
-        fwrite($archive, "-----SimplePHPLog-----\n" . date("d/m/Y H:i:s", time()) . " -> ". $message ."\n-------\n");
290
+        fwrite($archive, "-----SimplePHPLog-----\n" . date("d/m/Y H:i:s", time()) . " -> " . $message . "\n-------\n");
291 291
         fclose($archive);
292 292
         return null;
293 293
     }
Please login to merge, or discard this patch.