@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $console_format = $this->configuration->getLoggerConsoleFormat(); |
| 65 | 65 | $logline = $this->formatter($level, $message, $console_format); |
| 66 | 66 | list($foreground, $background) = $this->configuration->getColours($level); |
| 67 | - fwrite(STDOUT, Colours::setColour($logline, $foreground, $background) . PHP_EOL); |
|
| 67 | + fwrite(STDOUT, Colours::setColour($logline, $foreground, $background).PHP_EOL); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | $logfile = $this->configuration->getLogfile(); |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $file_format = $this->configuration->getLoggerFileFormat(); |
| 79 | 79 | $logline = $this->formatter($level, $message, $context, $file_format); |
| 80 | 80 | $handle = fopen($logfile, "a+"); |
| 81 | - fwrite($handle, $logline . PHP_EOL); |
|
| 81 | + fwrite($handle, $logline.PHP_EOL); |
|
| 82 | 82 | fclose($handle); |
| 83 | 83 | } |
| 84 | 84 | } |
@@ -53,8 +53,8 @@ |
||
| 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 | } |