@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | public function validatorCallback($modifier, $rules) |
| 36 | 36 | { |
| 37 | - $validator = function () use ($modifier, $rules) { |
|
| 37 | + $validator = function() use ($modifier, $rules) { |
|
| 38 | 38 | $this->makeValidator($modifier, $rules)->validate(); |
| 39 | 39 | }; |
| 40 | 40 | |
@@ -43,12 +43,12 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | public function validationPassesCallback($modifier, $rules) |
| 45 | 45 | { |
| 46 | - $validator = function () use ($modifier, $rules) { |
|
| 46 | + $validator = function() use ($modifier, $rules) { |
|
| 47 | 47 | $v = $this->makeValidator($modifier, $rules); |
| 48 | 48 | |
| 49 | 49 | resolve('heyman.chain')->set('condition_meta', $v); |
| 50 | 50 | |
| 51 | - return ! $v->fails(); |
|
| 51 | + return !$v->fails(); |
|
| 52 | 52 | }; |
| 53 | 53 | |
| 54 | 54 | return $this->wrapForIgnore($validator); |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | private function getModifier() |
| 94 | 94 | { |
| 95 | - return $this->modifier ?: function () { |
|
| 95 | + return $this->modifier ?: function() { |
|
| 96 | 96 | return request()->all(); |
| 97 | 97 | }; |
| 98 | 98 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | public static function respondFrom($method) |
| 19 | 19 | { |
| 20 | - return function () use ($method) { |
|
| 20 | + return function() use ($method) { |
|
| 21 | 21 | if (is_array($method[0])) { |
| 22 | 22 | $response = call_user_func_array($method[0], $method[1] ?? []); |
| 23 | 23 | } else { |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | $gate = $this->defineNewGate($gate); |
| 13 | 13 | |
| 14 | - return function (...$payload) use ($gate, $parameters) { |
|
| 14 | + return function(...$payload) use ($gate, $parameters) { |
|
| 15 | 15 | return GateFacade::allows($gate, array_merge($parameters, ...$payload)); |
| 16 | 16 | }; |
| 17 | 17 | } |