Completed
Push — master ( 24f6ef...8ab78a )
by Damiano
14:24
created
src/Formatter/StandardFormatter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Handler/RotatingFileHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Handler/FileHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,6 +38,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.