@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | // apply each of the formatters we've attached to this writer |
| 112 | - foreach($this->formatters as $formatter) { |
|
| 112 | + foreach ($this->formatters as $formatter) { |
|
| 113 | 113 | list($timestamp, $logLevel, $message, $indentLevel, $duration) = $formatter->format($timestamp, $logLevel, $indentLevel, $message, $duration); |
| 114 | 114 | } |
| 115 | 115 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | $indentation = $indentLevel ? str_repeat(' ', $indentLevel).'- ' : ''; |
| 118 | 118 | |
| 119 | 119 | // build the log entry we'll write to the stream |
| 120 | - $logEntry = $timestamp . ' ' . $indentation . ' ' .$message; |
|
| 120 | + $logEntry = $timestamp.' '.$indentation.' '.$message; |
|
| 121 | 121 | if ($this->showDurations) { |
| 122 | 122 | $logEntry .= ' '.$duration; |
| 123 | 123 | } |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | // apply each of the formatters we've attached to this writer |
| 115 | - foreach($this->formatters as $formatter) { |
|
| 115 | + foreach ($this->formatters as $formatter) { |
|
| 116 | 116 | list($timestamp, $logLevel, $message, $indentLevel, $duration) = $formatter->format($timestamp, $logLevel, $indentLevel, $message, $duration); |
| 117 | 117 | } |
| 118 | 118 | |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | $indentation = $indentLevel ? str_repeat(' ', $indentLevel).'- ' : ''; |
| 121 | 121 | |
| 122 | 122 | // build the log entry we'll write to the file |
| 123 | - $logEntry = $timestamp . ' ' . strtoupper($logLevel) . ' ' . $indentation . ' ' .$message; |
|
| 123 | + $logEntry = $timestamp.' '.strtoupper($logLevel).' '.$indentation.' '.$message; |
|
| 124 | 124 | if ($this->showDurations) { |
| 125 | 125 | $logEntry .= ' '.$duration; |
| 126 | 126 | } |
@@ -150,7 +150,7 @@ |
||
| 150 | 150 | $time = strftime($this->getDateFormat(), $time); |
| 151 | 151 | $message = $this->colorify($message, $logLevel); |
| 152 | 152 | |
| 153 | - if ($this->showDurations && ! is_null($duration)) { |
|
| 153 | + if ($this->showDurations && !is_null($duration)) { |
|
| 154 | 154 | $duration = $this->formatDuration($duration); |
| 155 | 155 | $duration = $this->colorify($duration, 'duration'); |
| 156 | 156 | } else { |