Passed
Pull Request — master (#4)
by Adam
02:51
created
src/UrlGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -226,10 +226,10 @@
 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
-            if($request->has($parameter) || strlen($request->route($parameter)) > 0) { 
232
+            if ($request->has($parameter) || strlen($request->route($parameter)) > 0) { 
233 233
                 return $this->hasValidSignature($request); 
234 234
             }
235 235
         }
Please login to merge, or discard this patch.
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.