Completed
Push — 3.x ( c13855...2f189b )
by Sam
04:02
created
Slim/App.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@  discard block
 block discarded – undo
14 14
 use Throwable;
15 15
 use Closure;
16 16
 use InvalidArgumentException;
17
-use Psr\Http\Message\RequestInterface;
18 17
 use Psr\Http\Message\ServerRequestInterface;
19 18
 use Psr\Http\Message\ResponseInterface;
20 19
 use Psr\Container\ContainerInterface;
@@ -26,7 +25,6 @@  discard block
 block discarded – undo
26 25
 use Slim\Http\Headers;
27 26
 use Slim\Http\Body;
28 27
 use Slim\Http\Request;
29
-use Slim\Interfaces\Http\EnvironmentInterface;
30 28
 use Slim\Interfaces\RouteGroupInterface;
31 29
 use Slim\Interfaces\RouteInterface;
32 30
 use Slim\Interfaces\RouterInterface;
Please login to merge, or discard this patch.
Slim/Handlers/Error.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
     /**
118 118
      * Render exception or error as HTML.
119 119
      *
120
-     * @param \Exception|\Error $exception
120
+     * @param \Exception $exception
121 121
      *
122 122
      * @return string
123 123
      */
Please login to merge, or discard this patch.
Slim/Http/Uri.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -186,12 +186,12 @@  discard block
 block discarded – undo
186 186
             $host = $matches[1];
187 187
 
188 188
             if (isset($matches[2])) {
189
-                $port = (int) substr($matches[2], 1);
189
+                $port = (int)substr($matches[2], 1);
190 190
             }
191 191
         } else {
192 192
             $pos = strpos($host, ':');
193 193
             if ($pos !== false) {
194
-                $port = (int) substr($host, $pos + 1);
194
+                $port = (int)substr($host, $pos + 1);
195 195
                 $host = strstr($host, ':', true);
196 196
             }
197 197
         }
@@ -622,7 +622,7 @@  discard block
 block discarded – undo
622 622
     {
623 623
         return preg_replace_callback(
624 624
             '/(?:[^a-zA-Z0-9_\-\.~:@&=\+\$,\/;%]+|%(?![A-Fa-f0-9]{2}))/',
625
-            function ($match) {
625
+            function($match) {
626 626
                 return rawurlencode($match[0]);
627 627
             },
628 628
             $path
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
     {
696 696
         return preg_replace_callback(
697 697
             '/(?:[^a-zA-Z0-9_\-\.~!\$&\'\(\)\*\+,;=%:@\/\?]+|%(?![A-Fa-f0-9]{2}))/',
698
-            function ($match) {
698
+            function($match) {
699 699
                 return rawurlencode($match[0]);
700 700
             },
701 701
             $query
Please login to merge, or discard this patch.
Slim/Http/Request.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
             $this->headers->set('Host', $this->uri->getHost());
203 203
         }
204 204
 
205
-        $this->registerMediaTypeParser('application/json', function ($input) {
205
+        $this->registerMediaTypeParser('application/json', function($input) {
206 206
             $result = json_decode($input, true);
207 207
             if (!is_array($result)) {
208 208
                 return null;
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             return $result;
211 211
         });
212 212
 
213
-        $this->registerMediaTypeParser('application/xml', function ($input) {
213
+        $this->registerMediaTypeParser('application/xml', function($input) {
214 214
             $backup = libxml_disable_entity_loader(true);
215 215
             $backup_errors = libxml_use_internal_errors(true);
216 216
             $result = simplexml_load_string($input);
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
             return $result;
224 224
         });
225 225
 
226
-        $this->registerMediaTypeParser('text/xml', function ($input) {
226
+        $this->registerMediaTypeParser('text/xml', function($input) {
227 227
             $backup = libxml_disable_entity_loader(true);
228 228
             $backup_errors = libxml_use_internal_errors(true);
229 229
             $result = simplexml_load_string($input);
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
             return $result;
237 237
         });
238 238
 
239
-        $this->registerMediaTypeParser('application/x-www-form-urlencoded', function ($input) {
239
+        $this->registerMediaTypeParser('application/x-www-form-urlencoded', function($input) {
240 240
             parse_str($input, $data);
241 241
             return $data;
242 242
         });
@@ -1032,7 +1032,7 @@  discard block
 block discarded – undo
1032 1032
         // look for a media type with a structured syntax suffix (RFC 6839)
1033 1033
         $parts = explode('+', $mediaType);
1034 1034
         if (count($parts) >= 2) {
1035
-            $mediaType = 'application/' . $parts[count($parts)-1];
1035
+            $mediaType = 'application/' . $parts[count($parts) - 1];
1036 1036
         }
1037 1037
 
1038 1038
         if (isset($this->bodyParsers[$mediaType]) === true) {
Please login to merge, or discard this patch.
Slim/Http/Response.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
      *
123 123
      * @var string
124 124
      */
125
-     const EOL = "\r\n";
125
+        const EOL = "\r\n";
126 126
 
127 127
     /**
128 128
      * Create new HTTP response.
Please login to merge, or discard this patch.