Passed
Pull Request — master (#4)
by Adam
01:51
created
src/FoundationServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/UrlGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.