Passed
Push — master ( e0fa44...dadf79 )
by Nícollas
02:18
created
Source/Model/SimplePHP.class.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function where(Array $where, String $condition = 'AND'): ?SimplePHP
85 85
     {
86
-        foreach($where as $enclosures) {
87
-            $this->where .= $enclosures[0]." ".$enclosures[1]." '".$enclosures[2]."' {$condition} ";
86
+        foreach ($where as $enclosures) {
87
+            $this->where .= $enclosures[0] . " " . $enclosures[1] . " '" . $enclosures[2] . "' {$condition} ";
88 88
         }
89 89
         $this->where = "WHERE " . rtrim($this->where, " {$condition} ");
90 90
 
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      */
129 129
     public function orderBy(String $prop, String $ordenation = 'ASC'): ?SimplePHP
130 130
     {
131
-        if(mb_strlen($this->order) < 9) {
131
+        if (mb_strlen($this->order) < 9) {
132 132
             $this->order = "ORDER BY {$prop} {$ordenation}";
133 133
         } else {
134 134
             $this->order .= ", {$prop} {$ordenation}";
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
     {
291 291
         $message = $pdo ? "Error: PDOCode " . $message : $message;
292 292
         $archive = fopen(dirname(__DIR__) . DIRECTORY_SEPARATOR . "Logs" . DIRECTORY_SEPARATOR . "Logs.txt", 'a+');
293
-        fwrite($archive, "-----SimplePHPLog-----\n" . date("d/m/Y H:i:s", time()) . " -> ". $message ."\n-------\n");
293
+        fwrite($archive, "-----SimplePHPLog-----\n" . date("d/m/Y H:i:s", time()) . " -> " . $message . "\n-------\n");
294 294
         fclose($archive);
295 295
         return null;
296 296
     }
Please login to merge, or discard this patch.