Completed
Push — master ( fce55e...f7da41 )
by Oscar
02:48
created
src/Middleware/Csrf.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             return $response->withStatus(403);
77 77
         }
78 78
 
79
-        $generator = function ($action = null) use ($request, &$tokens) {
79
+        $generator = function($action = null) use ($request, &$tokens) {
80 80
             if (empty($action)) {
81 81
                 $action = $request->getUri()->getPath();
82 82
             }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         } else {
91 91
             $response = $next($request, $response);
92 92
 
93
-            $response = $this->insertIntoPostForms($response, function ($match) use ($generator) {
93
+            $response = $this->insertIntoPostForms($response, function($match) use ($generator) {
94 94
                 preg_match('/action=["\']?([^"\'\s]+)["\']?/i', $match[0], $matches);
95 95
 
96 96
                 return $match[0].$generator(isset($matches[1]) ? $matches[1] : null);
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
             return;
179 179
         }
180 180
 
181
-        uasort($tokens, function ($a, $b) {
181
+        uasort($tokens, function($a, $b) {
182 182
             return $a['created'] - $b['created'];
183 183
         });
184 184
 
Please login to merge, or discard this patch.