@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | $exceptionTrace = ''; |
| 49 | 49 | while ($previous ?? true) { |
| 50 | 50 | // Create the trace string |
| 51 | - $exceptionTrace .= '( '.\get_class($value).": (code: {$value->getCode()} ): {$value->getMessage()} at {$value->getFile()} : {$value->getLine()}),"; |
|
| 51 | + $exceptionTrace .= '( ' . \get_class($value) . ": (code: {$value->getCode()} ): {$value->getMessage()} at {$value->getFile()} : {$value->getLine()}),"; |
|
| 52 | 52 | // If there's no previous exception, stop the loop |
| 53 | 53 | if (!$value = $value->getPrevious()) { |
| 54 | 54 | $previous = false; |
@@ -62,10 +62,10 @@ discard block |
||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | // If the value isn't an array and is an object with a toString method |
| 65 | - if ((!\is_array($value) || (\is_object($value) && \method_exists($value, '__toString'))) && false !== \mb_strpos($message, '{'.$key.'}')) { |
|
| 65 | + if ((!\is_array($value) || (\is_object($value) && \method_exists($value, '__toString'))) && false !== \mb_strpos($message, '{' . $key . '}')) { |
|
| 66 | 66 | // If in the message there's a placeholder (represented as {key}) replace it with the value, |
| 67 | 67 | // remove from the context and continue |
| 68 | - $message = \str_replace('{'.$key.'}', "$value", $message); |
|
| 68 | + $message = \str_replace('{' . $key . '}', "$value", $message); |
|
| 69 | 69 | unset($context[$key]); |
| 70 | 70 | } |
| 71 | 71 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | $data = $this->formatter->interpolate($name, $level, $message, $context); |
| 46 | 46 | |
| 47 | 47 | // Push it to file |
| 48 | - \file_put_contents($this->getRotatedFilename(), $data.PHP_EOL, FILE_APPEND); |
|
| 48 | + \file_put_contents($this->getRotatedFilename(), $data . PHP_EOL, FILE_APPEND); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
@@ -38,6 +38,6 @@ |
||
| 38 | 38 | $data = $this->formatter->interpolate($name, $level, $message, $context); |
| 39 | 39 | |
| 40 | 40 | // Push it to file |
| 41 | - \file_put_contents($this->filename, $data.PHP_EOL, FILE_APPEND); |
|
| 41 | + \file_put_contents($this->filename, $data . PHP_EOL, FILE_APPEND); |
|
| 42 | 42 | } |
| 43 | 43 | } |