@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | protected function write(array $record): void |
34 | 34 | { |
35 | - $this->honeybadger->rawNotification(function ($config) use ($record) { |
|
35 | + $this->honeybadger->rawNotification(function($config) use ($record) { |
|
36 | 36 | return [ |
37 | 37 | 'notifier' => array_merge($config['notifier'], ['name' => 'Honeybadger Log Handler']), |
38 | 38 | 'error' => [ |
@@ -92,7 +92,7 @@ |
||
92 | 92 | */ |
93 | 93 | private function data(): array |
94 | 94 | { |
95 | - return array_filter($this->server, function ($key) { |
|
95 | + return array_filter($this->server, function($key) { |
|
96 | 96 | return $this->autoIncludeKey($key) || in_array($key, $this->includeKeys); |
97 | 97 | }, ARRAY_FILTER_USE_KEY); |
98 | 98 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function getSource(): array |
40 | 40 | { |
41 | - if (! $this->canReadFile()) { |
|
41 | + if (!$this->canReadFile()) { |
|
42 | 42 | return []; |
43 | 43 | } |
44 | 44 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | private function fileLines(SplFileObject $file): array |
85 | 85 | { |
86 | 86 | $lines = []; |
87 | - while (! $file->eof()) { |
|
87 | + while (!$file->eof()) { |
|
88 | 88 | $lines[] = $this->trimLine($file->fgets()); |
89 | 89 | } |
90 | 90 |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | public function notify(Throwable $throwable, FoundationRequest $request = null, array $additionalParams = []): array |
62 | 62 | { |
63 | - if (! $this->shouldReport($throwable)) { |
|
63 | + if (!$this->shouldReport($throwable)) { |
|
64 | 64 | return []; |
65 | 65 | } |
66 | 66 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | public function customNotification(array $payload): array |
77 | 77 | { |
78 | - if (empty($this->config['api_key']) || ! $this->config['report_data']) { |
|
78 | + if (empty($this->config['api_key']) || !$this->config['report_data']) { |
|
79 | 79 | return []; |
80 | 80 | } |
81 | 81 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | public function rawNotification(callable $callable): array |
92 | 92 | { |
93 | - if (empty($this->config['api_key']) || ! $this->config['report_data']) { |
|
93 | + if (empty($this->config['api_key']) || !$this->config['report_data']) { |
|
94 | 94 | return []; |
95 | 95 | } |
96 | 96 | |
@@ -167,8 +167,8 @@ discard block |
||
167 | 167 | */ |
168 | 168 | private function shouldReport(Throwable $throwable): bool |
169 | 169 | { |
170 | - return ! $this->excludedException($throwable) |
|
171 | - && ! empty($this->config['api_key']) |
|
170 | + return !$this->excludedException($throwable) |
|
171 | + && !empty($this->config['api_key']) |
|
172 | 172 | && $this->config['report_data']; |
173 | 173 | } |
174 | 174 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | private function filter(array $values): array |
30 | 30 | { |
31 | - return Arr::mapWithKeys($values, function ($value, $key) { |
|
31 | + return Arr::mapWithKeys($values, function($value, $key) { |
|
32 | 32 | if (is_array($value)) { |
33 | 33 | return $this->filter($value); |
34 | 34 | } |
@@ -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); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | private function parseArgs(array $args): array |
107 | 107 | { |
108 | - return array_map(function ($arg) { |
|
108 | + return array_map(function($arg) { |
|
109 | 109 | if (is_object($arg)) { |
110 | 110 | return get_class($arg); |
111 | 111 | } |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | private function contextWithoutFile(array $frame): array |
122 | 122 | { |
123 | - if (! empty($frame['class'])) { |
|
123 | + if (!empty($frame['class'])) { |
|
124 | 124 | $filename = sprintf('%s%s%s', $frame['class'], $frame['type'], $frame['function']); |
125 | 125 | |
126 | 126 | try { |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | } catch (ReflectionException $e) { |
130 | 130 | // Forget it if we run into errors, it's not worth it. |
131 | 131 | } |
132 | - } elseif (! empty($frame['function'])) { |
|
132 | + } elseif (!empty($frame['function'])) { |
|
133 | 133 | $filename = sprintf('%s(anonymous)', $frame['function']); |
134 | 134 | } else { |
135 | 135 | $filename = sprintf('(anonymous)'); |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | return [ |
156 | 156 | 'source' => (new FileSource($frame['file'], $frame['line']))->getSource(), |
157 | 157 | 'file' => $frame['file'], |
158 | - 'number' => (string) $frame['line'], |
|
158 | + 'number' => (string)$frame['line'], |
|
159 | 159 | ]; |
160 | 160 | } |
161 | 161 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | */ |
44 | 44 | public function params(): array |
45 | 45 | { |
46 | - if (! $this->httpRequest()) { |
|
46 | + if (!$this->httpRequest()) { |
|
47 | 47 | return []; |
48 | 48 | } |
49 | 49 |