Completed
Push — master ( 062d2e...65e059 )
by Oscar
03:08
created
src/Middleware/Csrf.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             return $response->withStatus(403);
81 81
         }
82 82
 
83
-        $generator = function ($action = null) use ($request, &$tokens) {
83
+        $generator = function($action = null) use ($request, &$tokens) {
84 84
             if (empty($action)) {
85 85
                 $action = $request->getUri()->getPath();
86 86
             }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
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);
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
             return;
180 180
         }
181 181
 
182
-        uasort($tokens, function ($a, $b) {
182
+        uasort($tokens, function($a, $b) {
183 183
             return $a['created'] - $b['created'];
184 184
         });
185 185
 
Please login to merge, or discard this patch.