Completed
Push — master ( d8175f...ea9f4e )
by Kirill
11:51
created
src/ExceptionRenderer.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
     public function render(\Throwable $e): string
39 39
     {
40 40
         return
41
-            $this->renderHeader($e) .
42
-            $this->renderFileHeader($e) .
43
-            $this->renderCode($e) .
41
+            $this->renderHeader($e).
42
+            $this->renderFileHeader($e).
43
+            $this->renderCode($e).
44 44
             $this->renderTrace($e);
45 45
     }
46 46
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             $file = File::fromSources('', $e->getFile());
57 57
         }
58 58
 
59
-        return $this->highlighter->highlight($file, $e->getLine()) .
59
+        return $this->highlighter->highlight($file, $e->getLine()).
60 60
             \PHP_EOL;
61 61
     }
62 62
 
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
     {
69 69
         [$name, $msg] = [$this->classname($e), $e->getMessage()];
70 70
 
71
-        return \sprintf('<error> %s </error> <comment>%s</comment>', $name, $msg) .
72
-            \PHP_EOL . \PHP_EOL;
71
+        return \sprintf('<error> %s </error> <comment>%s</comment>', $name, $msg).
72
+            \PHP_EOL.\PHP_EOL;
73 73
     }
74 74
 
75 75
     /**
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
     {
92 92
         $message = 'in <fg=cyan;options=underscore>%s</> at line <fg=cyan>%d</>';
93 93
 
94
-        return \sprintf($message, $e->getFile(), $e->getLine()) .
95
-            \PHP_EOL . \PHP_EOL;
94
+        return \sprintf($message, $e->getFile(), $e->getLine()).
95
+            \PHP_EOL.\PHP_EOL;
96 96
     }
97 97
 
98 98
     /**
@@ -107,11 +107,11 @@  discard block
 block discarded – undo
107 107
             $line = $this->traceInvocation($trace);
108 108
             $args = $this->traceArguments($trace);
109 109
 
110
-            $result[] = \sprintf('<fg=blue>%3s</> <comment>%s(%s)</comment>', '#' . $i, $line, $args);
110
+            $result[] = \sprintf('<fg=blue>%3s</> <comment>%s(%s)</comment>', '#'.$i, $line, $args);
111 111
             $result[] = \sprintf('    <fg=cyan>%s</>:<fg=cyan>%d</>', $trace['file'], $trace['line']);
112 112
         }
113 113
 
114
-        return \implode(\PHP_EOL, $result) .
114
+        return \implode(\PHP_EOL, $result).
115 115
             \PHP_EOL;
116 116
     }
117 117
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         $result = [];
125 125
 
126 126
         foreach (($trace['args'] ?? []) as $arg) {
127
-            $result[] = \is_object($arg) ? 'Object(' . $this->classname($arg) . ')' : \gettype($arg);
127
+            $result[] = \is_object($arg) ? 'Object('.$this->classname($arg).')' : \gettype($arg);
128 128
         }
129 129
 
130 130
         return \implode(', ', $result);
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     private function traceInvocation(array $trace): string
138 138
     {
139 139
         return isset($trace['class'])
140
-            ? $trace['class'] . $trace['type'] . $trace['function']
140
+            ? $trace['class'].$trace['type'].$trace['function']
141 141
             : $trace['function'];
142 142
     }
143 143
 }
Please login to merge, or discard this patch.