Completed
Push — master ( 2d3e29...d0ef6d )
by Oscar
04:16
created
src/Middleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      */
78 78
     public static function create(callable $factory)
79 79
     {
80
-        return function (RequestInterface $request, ResponseInterface $response, callable $next) use ($factory) {
80
+        return function(RequestInterface $request, ResponseInterface $response, callable $next) use ($factory) {
81 81
             $middleware = $factory();
82 82
 
83 83
             if ($middleware === false) {
Please login to merge, or discard this patch.
src/Middleware/FormTimestamp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
 
102 102
         $value = $this->encrypt(time());
103 103
 
104
-        return $this->insertIntoPostForms($response, function ($match) use ($value) {
104
+        return $this->insertIntoPostForms($response, function($match) use ($value) {
105 105
             return $match[0].'<input type="text" name="'.$this->inputName.'" value="'.$value.'">';
106 106
         });
107 107
     }
Please login to merge, or discard this patch.
src/Middleware/Honeypot.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
 
78 78
         $response = $next($request, $response);
79 79
 
80
-        return $this->insertIntoPostForms($response, function ($match) {
80
+        return $this->insertIntoPostForms($response, function($match) {
81 81
             return $match[0].'<input type="text" name="'.$this->inputName.'" class="'.$this->inputClass.'">';
82 82
         });
83 83
     }
Please login to merge, or discard this patch.
src/Middleware/Csrf.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
         $response = $next($request, $response);
101 101
 
102
-        return $this->insertIntoPostForms($response, function ($match) use ($request) {
102
+        return $this->insertIntoPostForms($response, function($match) use ($request) {
103 103
             preg_match('/action=["\']?([^"\'\s]+)["\']?/i', $match[0], $matches);
104 104
 
105 105
             $action = empty($matches[1]) ? $request->getUri()->getPath() : $matches[1];
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
             return;
183 183
         }
184 184
 
185
-        uasort($this->storage, function ($a, $b) {
185
+        uasort($this->storage, function($a, $b) {
186 186
             return $a['created'] - $b['created'];
187 187
         });
188 188
 
Please login to merge, or discard this patch.