Passed
Pull Request — master (#4)
by Deric
02:24
created
lib/Colours.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,8 @@
 block discarded – undo
53 53
      */
54 54
     final public function setColour($string, $foreground = null, $background = null)
55 55
     {
56
-        $foreground = isset(self::$FOREGROUND[$foreground]) ? "\033[" . self::$FOREGROUND[$foreground] . "m" : "";
57
-        $background = isset(self::$BACKGROUND[$background]) ? "\033[" . self::$BACKGROUND[$background] . "m" : "";
56
+        $foreground = isset(self::$FOREGROUND[$foreground]) ? "\033[".self::$FOREGROUND[$foreground]."m" : "";
57
+        $background = isset(self::$BACKGROUND[$background]) ? "\033[".self::$BACKGROUND[$background]."m" : "";
58 58
         $lineending = "\033[0m";
59 59
         return "{$foreground}{$background}{$string}{$lineending}";
60 60
     }
Please login to merge, or discard this patch.
lib/SimpleLogger.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                 $console_format = $this->configuration->getLoggerConsoleFormat();
64 64
                 $logline = $this->formatter($level, $message, $console_format);
65 65
                 list($foreground, $background) = $this->configuration->getColours($level);
66
-                fwrite($stdout, Colours::setColour($logline, $foreground, $background) . PHP_EOL);
66
+                fwrite($stdout, Colours::setColour($logline, $foreground, $background).PHP_EOL);
67 67
             }
68 68
 
69 69
             if (($logfile = $this->configuration->getLogfile()) !== null)
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                 $file_format = $this->configuration->getLoggerFileFormat();
77 77
                 $logline = $this->formatter($level, $message, $file_format);
78 78
                 $handle = fopen($logfile, "a+");
79
-                fwrite($handle, $logline . PHP_EOL);
79
+                fwrite($handle, $logline.PHP_EOL);
80 80
                 fclose($handle);
81 81
             }
82 82
         }
Please login to merge, or discard this patch.