@@ -81,8 +81,8 @@ discard block |
||
| 81 | 81 | */ |
| 82 | 82 | private function formatBacktrace(array $backtrace) : array |
| 83 | 83 | { |
| 84 | - return array_map(function ($frame) { |
|
| 85 | - if (! array_key_exists('file', $frame)) { |
|
| 84 | + return array_map(function($frame) { |
|
| 85 | + if (!array_key_exists('file', $frame)) { |
|
| 86 | 86 | $context = $this->contextWithoutFile($frame); |
| 87 | 87 | } else { |
| 88 | 88 | $context = $this->contextWithFile($frame); |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | |
| 98 | 98 | private function parseArgs(array $args) : array |
| 99 | 99 | { |
| 100 | - return array_map(function ($arg) { |
|
| 100 | + return array_map(function($arg) { |
|
| 101 | 101 | if (is_object($arg)) { |
| 102 | 102 | return get_class($arg); |
| 103 | 103 | } |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | private function contextWithoutFile(array $frame) : array |
| 114 | 114 | { |
| 115 | - if (! empty($frame['class'])) { |
|
| 115 | + if (!empty($frame['class'])) { |
|
| 116 | 116 | $filename = sprintf('%s%s%s', $frame['class'], $frame['type'], $frame['function']); |
| 117 | 117 | |
| 118 | 118 | try { |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | } catch (ReflectionException $e) { |
| 122 | 122 | // Forget it if we run into errors, it's not worth it. |
| 123 | 123 | } |
| 124 | - } elseif (! empty($frame['function'])) { |
|
| 124 | + } elseif (!empty($frame['function'])) { |
|
| 125 | 125 | $filename = sprintf('%s(anonymous)', $frame['function']); |
| 126 | 126 | } else { |
| 127 | 127 | $filename = sprintf('(anonymous)'); |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | return [ |
| 148 | 148 | 'source' => (new FileSource($frame['file'], $frame['line']))->getSource(), |
| 149 | 149 | 'file' => $frame['file'], |
| 150 | - 'number' => (string) $frame['line'], |
|
| 150 | + 'number' => (string)$frame['line'], |
|
| 151 | 151 | ]; |
| 152 | 152 | } |
| 153 | 153 | } |