@@ -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 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public static function get($array, $key, $default = null) |
| 26 | 26 | { |
| 27 | - if (! static::accessible($array)) { |
|
| 27 | + if (!static::accessible($array)) { |
|
| 28 | 28 | return $default; |
| 29 | 29 | } |
| 30 | 30 | |
@@ -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); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | */ |
| 104 | 104 | private function parseArgs(array $args) : array |
| 105 | 105 | { |
| 106 | - return array_map(function ($arg) { |
|
| 106 | + return array_map(function($arg) { |
|
| 107 | 107 | if (is_object($arg)) { |
| 108 | 108 | return get_class($arg); |
| 109 | 109 | } |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | */ |
| 119 | 119 | private function contextWithoutFile(array $frame) : array |
| 120 | 120 | { |
| 121 | - if (! empty($frame['class'])) { |
|
| 121 | + if (!empty($frame['class'])) { |
|
| 122 | 122 | $filename = sprintf('%s%s%s', $frame['class'], $frame['type'], $frame['function']); |
| 123 | 123 | |
| 124 | 124 | try { |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | } catch (ReflectionException $e) { |
| 128 | 128 | // Forget it if we run into errors, it's not worth it. |
| 129 | 129 | } |
| 130 | - } elseif (! empty($frame['function'])) { |
|
| 130 | + } elseif (!empty($frame['function'])) { |
|
| 131 | 131 | $filename = sprintf('%s(anonymous)', $frame['function']); |
| 132 | 132 | } else { |
| 133 | 133 | $filename = sprintf('(anonymous)'); |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | return [ |
| 154 | 154 | 'source' => (new FileSource($frame['file'], $frame['line']))->getSource(), |
| 155 | 155 | 'file' => $frame['file'], |
| 156 | - 'number' => (string) $frame['line'], |
|
| 156 | + 'number' => (string)$frame['line'], |
|
| 157 | 157 | ]; |
| 158 | 158 | } |
| 159 | 159 | } |