Completed
Push — master ( 2b82a4...1acfba )
by Oscar
02:59
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/Csrf.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
         $token = self::encode(hash_hmac('sha256', ClientIp::getIp($request), base64_decode($token), true));
134 134
 
135 135
         return '<input type="hidden" name="'.$this->formIndex.'" value="'.htmlentities($index, ENT_QUOTES, 'UTF-8').'">'
136
-               .'<input type="hidden" name="'.$this->formToken.'" value="'.htmlentities($token, ENT_QUOTES, 'UTF-8').'">';
136
+                .'<input type="hidden" name="'.$this->formToken.'" value="'.htmlentities($token, ENT_QUOTES, 'UTF-8').'">';
137 137
     }
138 138
 
139 139
     /**
Please login to merge, or discard this 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.
src/Middleware/BasePath.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
         $path = $this->getPath($uri->getPath());
92 92
         $request = $request->withUri($uri->withPath($path));
93 93
 
94
-        $generator = function ($path) {
94
+        $generator = function($path) {
95 95
             return Utils\Helpers::joinPath($this->basePath, $path);
96 96
         };
97 97
 
Please login to merge, or discard this patch.
src/Middleware/FormTimestamp.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,13 +113,13 @@
 block discarded – undo
113 113
 
114 114
         $value = $this->encrypt(time());
115 115
 
116
-        $generator = function () use ($value) {
116
+        $generator = function() use ($value) {
117 117
             return '<input type="hidden" name="'.$this->inputName.'" value="'.$value.'">';
118 118
         };
119 119
 
120 120
         $response = $next($request, $response);
121 121
 
122
-        return $this->insertIntoPostForms($response, function ($match) use ($generator) {
122
+        return $this->insertIntoPostForms($response, function($match) use ($generator) {
123 123
             return $match[0].$generator();
124 124
         });
125 125
     }
Please login to merge, or discard this patch.
src/Middleware/Honeypot.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,13 +90,13 @@
 block discarded – undo
90 90
             return $response->withStatus(403);
91 91
         }
92 92
 
93
-        $generator = function () {
93
+        $generator = function() {
94 94
             return '<input type="text" name="'.$this->inputName.'" class="'.$this->inputClass.'">';
95 95
         };
96 96
 
97 97
         $response = $next($request, $response);
98 98
 
99
-        return $this->insertIntoPostForms($response, function ($match) use ($generator) {
99
+        return $this->insertIntoPostForms($response, function($match) use ($generator) {
100 100
             return $match[0].$generator();
101 101
         });
102 102
     }
Please login to merge, or discard this patch.
src/Middleware/ImageTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
                 return $response;
149 149
 
150 150
             case 'html':
151
-                $generator = function ($path, $transform) {
151
+                $generator = function($path, $transform) {
152 152
                     $info = pathinfo($path);
153 153
 
154 154
                     if (!isset($this->sizes[$transform])) {
Please login to merge, or discard this patch.