@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $resolved->validate(); |
| 45 | 45 | }); |
| 46 | 46 | |
| 47 | - $this->app->resolving(function (FormRequest $request, $app) { |
|
| 47 | + $this->app->resolving(function(FormRequest $request, $app) { |
|
| 48 | 48 | $this->initializeRequest($request, $app['request']); |
| 49 | 49 | |
| 50 | 50 | $request->setContainer($app)->setRedirector($app->make(Redirector::class)); |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | }); |
| 91 | 91 | |
| 92 | 92 | FormRequest::macro('hasInvalidSignature', function() { |
| 93 | - return ! URL::hasValidSignature($this ?? URL::getRequest()); |
|
| 93 | + return !URL::hasValidSignature($this ?? URL::getRequest()); |
|
| 94 | 94 | }); |
| 95 | 95 | |
| 96 | 96 | FormRequest::macro('hasValidParameterSignature', function(array $parameters = []) { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | }); |
| 99 | 99 | |
| 100 | 100 | FormRequest::macro('hasInvalidParameterSignature', function(array $parameters = []) { |
| 101 | - return ! URL::hasValidParameterSignature($this ?? URL::getRequest(), $parameters); |
|
| 101 | + return !URL::hasValidParameterSignature($this ?? URL::getRequest(), $parameters); |
|
| 102 | 102 | }); |
| 103 | 103 | } |
| 104 | 104 | |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | return true; |
| 227 | 227 | } |
| 228 | 228 | |
| 229 | - foreach($parameters as $parameter) { |
|
| 229 | + foreach ($parameters as $parameter) { |
|
| 230 | 230 | // if the request has the parameter or |
| 231 | 231 | // the route has the parameter we check the signature |
| 232 | 232 | if ($request->has($parameter)) { |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | |
| 236 | 236 | $route = $request->route($parameter); |
| 237 | 237 | |
| 238 | - if($route instanceof \Illuminate\Routing\Route && $route->hasParameter($parameter)) { |
|
| 238 | + if ($route instanceof \Illuminate\Routing\Route && $route->hasParameter($parameter)) { |
|
| 239 | 239 | return $this->hasValidSignature($request); |
| 240 | 240 | } |
| 241 | 241 | |