@@ -19,14 +19,14 @@ discard block |
||
19 | 19 | |
20 | 20 | protected function abort($abort): \Closure |
21 | 21 | { |
22 | - return function () use ($abort) { |
|
22 | + return function() use ($abort) { |
|
23 | 23 | abort(...$abort); |
24 | 24 | }; |
25 | 25 | } |
26 | 26 | |
27 | 27 | protected function nothing(): \Closure |
28 | 28 | { |
29 | - return function () { |
|
29 | + return function() { |
|
30 | 30 | }; |
31 | 31 | } |
32 | 32 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | protected function exception(array $e): \Closure |
39 | 39 | { |
40 | - return function () use ($e) { |
|
40 | + return function() use ($e) { |
|
41 | 41 | $exClass = $e[0]; |
42 | 42 | $message = $e[1]; |
43 | 43 | |
@@ -52,14 +52,14 @@ discard block |
||
52 | 52 | */ |
53 | 53 | protected function response(...$resp): \Closure |
54 | 54 | { |
55 | - return function () use ($resp) { |
|
55 | + return function() use ($resp) { |
|
56 | 56 | $this->sendResponse($resp, response()); |
57 | 57 | }; |
58 | 58 | } |
59 | 59 | |
60 | 60 | protected function redirect(...$resp): \Closure |
61 | 61 | { |
62 | - return function () use ($resp) { |
|
62 | + return function() use ($resp) { |
|
63 | 63 | $this->sendResponse($resp, redirect()); |
64 | 64 | }; |
65 | 65 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | protected function respondFrom($method): \Closure |
75 | 75 | { |
76 | - return function () use ($method) { |
|
76 | + return function() use ($method) { |
|
77 | 77 | throw new HttpResponseException(app()->call(...$method)); |
78 | 78 | }; |
79 | 79 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | */ |
107 | 107 | public function validatorCallback($modifier, $rules, array $messages = [], array $customAttributes = []): \Closure |
108 | 108 | { |
109 | - $validator = function () use ($modifier, $rules, $messages, $customAttributes) { |
|
109 | + $validator = function() use ($modifier, $rules, $messages, $customAttributes) { |
|
110 | 110 | if (is_callable($rules)) { |
111 | 111 | $rules = call_user_func($rules); |
112 | 112 | } |