@@ -27,7 +27,7 @@ |
||
27 | 27 | $message = $validator->messages()->first(); |
28 | 28 | |
29 | 29 | $exception = new ValidationException(); |
30 | - $exception->statusMessage = $exception->statusMessage.': '.$message; |
|
30 | + $exception->statusMessage = $exception->statusMessage . ': ' . $message; |
|
31 | 31 | $exception->validation = $validator->messages(); |
32 | 32 | |
33 | 33 | throw $exception; |
@@ -237,7 +237,7 @@ |
||
237 | 237 | $server = []; |
238 | 238 | |
239 | 239 | foreach ($headers as $headerType => $headerValue) { |
240 | - $headerType = 'HTTP_'.$headerType; |
|
240 | + $headerType = 'HTTP_' . $headerType; |
|
241 | 241 | |
242 | 242 | $server[$headerType] = $headerValue; |
243 | 243 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $rules = $this->rules(); |
58 | 58 | if (false === empty(array_diff_key($input, $rules))) { |
59 | 59 | $exception = new InvalidFieldException(); |
60 | - $exception->statusMessage = $exception->statusMessage.': '.implode(',', array_keys(array_diff_key($input, $rules))); |
|
60 | + $exception->statusMessage = $exception->statusMessage . ': ' . implode(',', array_keys(array_diff_key($input, $rules))); |
|
61 | 61 | |
62 | 62 | throw $exception; |
63 | 63 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * Remove input fields like _method, _token, etc. |
73 | 73 | */ |
74 | - $input = array_filter($this->input(), function ($key) { |
|
74 | + $input = array_filter($this->input(), function($key) { |
|
75 | 75 | return !starts_with($key, '_'); |
76 | 76 | }, ARRAY_FILTER_USE_KEY); |
77 | 77 | |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | { |
114 | 114 | $message = $validator->messages()->first(); |
115 | 115 | $exception = new ValidationException(); |
116 | - $exception->statusMessage = $exception->statusMessage.': '.$message; |
|
116 | + $exception->statusMessage = $exception->statusMessage . ': ' . $message; |
|
117 | 117 | $exception->validation = $this->transformValidationOutput($validator); |
118 | 118 | |
119 | 119 | throw $exception; |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | protected function transformValidationOutput($validator): array |
154 | 154 | { |
155 | 155 | return collect($this->getTransformer()->transformOutputKeys($validator->getMessageBag()->toArray())) |
156 | - ->reject(function ($error) { |
|
156 | + ->reject(function($error) { |
|
157 | 157 | return false === \is_array($error); |
158 | 158 | }) |
159 | 159 | ->toArray(); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | if (false === empty($arguments)) { |
48 | - $callArguments = [$url.'?'.http_build_query($arguments)]; |
|
48 | + $callArguments = [$url . '?' . http_build_query($arguments)]; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | return $this->{$requestMethod}(...$callArguments); |