@@ -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 | } |
@@ -42,9 +42,9 @@ |
||
42 | 42 | ], |
43 | 43 | ], |
44 | 44 | ['request' => [ |
45 | - 'context' => (object) $this->context->all(), ], |
|
45 | + 'context' => (object)$this->context->all(), ], |
|
46 | 46 | ], |
47 | - ['server' => (object) []] |
|
47 | + ['server' => (object)[]] |
|
48 | 48 | ); |
49 | 49 | } |
50 | 50 | } |
@@ -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 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function params() : array |
44 | 44 | { |
45 | - if (! $this->httpRequest()) { |
|
45 | + if (!$this->httpRequest()) { |
|
46 | 46 | return []; |
47 | 47 | } |
48 | 48 |
@@ -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 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | throw (new ServiceExceptionFactory($response))->make(); |
52 | 52 | } |
53 | 53 | |
54 | - return (string) $response->getBody() |
|
54 | + return (string)$response->getBody() |
|
55 | 55 | ? json_decode($response->getBody(), true) |
56 | 56 | : []; |
57 | 57 | } |
@@ -39,9 +39,9 @@ |
||
39 | 39 | [], |
40 | 40 | ['notifier' => $this->config['notifier']], |
41 | 41 | ['error' => []], |
42 | - ['request' => ['context' => (object) $this->context->all()], |
|
42 | + ['request' => ['context' => (object)$this->context->all()], |
|
43 | 43 | ], |
44 | - ['server' => (object) []], |
|
44 | + ['server' => (object)[]], |
|
45 | 45 | $payload |
46 | 46 | ); |
47 | 47 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | protected function write(array $record) |
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' => [ |
@@ -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 | } |