Completed
Push — master ( 809da3...3cd0fc )
by Damien
03:56
created
src/Layer/Dispatcher/DispatcherLayer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     /**
37 37
      * @param Request $request
38
-     * @return mixed
38
+     * @return Response
39 39
      * @throws \RuntimeException
40 40
      */
41 41
     public function in(Request $request)
Please login to merge, or discard this patch.
src/Templating/Engine/TwigEngine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         // Determine the type of loader that is used by this twig
42 42
         if ($loader instanceof \Twig_Loader_Filesystem) {
43 43
             $loader->addPath($path);
44
-        } else if($loader instanceof \Twig_Loader_Chain) {
44
+        } else if ($loader instanceof \Twig_Loader_Chain) {
45 45
             $loader->addLoader(
46 46
                 new \Twig_Loader_Filesystem($path)
47 47
             );
Please login to merge, or discard this patch.
src/Debug/Resources/Exception/TextHtml.html.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
             <?php } ?>
70 70
 
71 71
             <br><br>
72
-            <?php $frameIndex ++; ?>
72
+            <?php $frameIndex++; ?>
73 73
         <?php } ?>
74 74
     </div>
75 75
 </body>
Please login to merge, or discard this patch.
src/Http/Request.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -547,7 +547,7 @@  discard block
 block discarded – undo
547 547
     /**
548 548
      * Get a parameter of this request.
549 549
      *
550
-     * @param $key
550
+     * @param string $key
551 551
      * @param null $default
552 552
      * @return mixed|null
553 553
      */
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
     /**
560 560
      * Check if the request has a parameter with the specified key.
561 561
      *
562
-     * @param $key
562
+     * @param string $key
563 563
      * @return bool
564 564
      */
565 565
     public function hasParameter($key)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -390,7 +390,7 @@
 block discarded – undo
390 390
         $path = $this->uri->getPath();
391 391
         $query = $this->uri->getQuery();
392 392
         if ($query) {
393
-            $path .= '?' . $query;
393
+            $path .= '?'.$query;
394 394
         }
395 395
 
396 396
         $this->requestTarget = $path;
Please login to merge, or discard this patch.
src/Http/MessageBody.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -224,8 +224,7 @@
 block discarded – undo
224 224
     public function seek($offset, $whence = SEEK_SET)
225 225
     {
226 226
         return $this->isAttached() && $this->isSeekable() ?
227
-            fseek($this->stream, $offset, $whence) :
228
-            false;
227
+            fseek($this->stream, $offset, $whence) : false;
229 228
     }
230 229
 
231 230
     /**
Please login to merge, or discard this patch.
src/Http/Response.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@
 block discarded – undo
221 221
      * While header names are not case-sensitive, getHeaders() will preserve the
222 222
      * exact case in which headers were originally specified.
223 223
      *
224
-     * @return array Returns an associative array of the message's headers. Each
224
+     * @return HeaderBag Returns an associative array of the message's headers. Each
225 225
      *     key MUST be a header name, and each value MUST be an array of strings.
226 226
      */
227 227
     public function getHeaders()
Please login to merge, or discard this patch.
src/Http/Uri.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         // Normalize URL before validation as filter_var requires this for a valid url
121 121
         $mungedUri = $uri;
122 122
         if (!array_key_exists('scheme', parse_url($uri))) {
123
-            $mungedUri = 'http://' . $uri;
123
+            $mungedUri = 'http://'.$uri;
124 124
         }
125 125
 
126 126
         $parts = parse_url($mungedUri);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         // Ensure that the URL is valid
129 129
         if (!filter_var($mungedUri, FILTER_VALIDATE_URL) || !strlen($parts['host'])) {
130 130
             throw new \InvalidArgumentException(
131
-                'Call to \\' . __METHOD__ . '() with invalid URI "' . $uri . '"'
131
+                'Call to \\'.__METHOD__.'() with invalid URI "'.$uri.'"'
132 132
             );
133 133
         }
134 134
 
@@ -168,11 +168,11 @@  discard block
 block discarded – undo
168 168
         $user = $environment->get('PHP_AUTH_USER', '');
169 169
         $password = $environment->get('PHP_AUTH_PW', '');
170 170
         $host = $environment->get('HTTP_HOST', $environment->get('SERVER_NAME'));
171
-        $port = (int)$environment->get('SERVER_PORT', null);
171
+        $port = (int) $environment->get('SERVER_PORT', null);
172 172
 
173 173
         // Path
174 174
         $requestUri = parse_url($environment->get('REQUEST_URI'), PHP_URL_PATH);
175
-        $path = '/' . ltrim($requestUri, '/');
175
+        $path = '/'.ltrim($requestUri, '/');
176 176
 
177 177
         // Query string
178 178
         $queryString = $environment->get('QUERY_STRING', '');
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             $userInfo = $username;
201 201
 
202 202
             if (strlen($password)) {
203
-                $userInfo .= ':' . $password;
203
+                $userInfo .= ':'.$password;
204 204
             }
205 205
         }
206 206
 
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
         $port = $this->getPort();
250 250
         $showPort = !$this->isStandardPort($port, $this->scheme);
251 251
 
252
-        return ($userInfo ? $userInfo . '@' : '') . $host . ($port && $showPort ? ':' . $port : '');
252
+        return ($userInfo ? $userInfo.'@' : '').$host.($port && $showPort ? ':'.$port : '');
253 253
     }
254 254
 
255 255
     /**
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
         $query = $this->getQuery();
527 527
         $fragment = $this->getFragment();
528 528
 
529
-        return ($scheme ? $scheme . '://' : '') . $authority . $path . ($query ? '?' . $query : '') . ($fragment ? '#' . $fragment : '');
529
+        return ($scheme ? $scheme.'://' : '').$authority.$path.($query ? '?'.$query : '').($fragment ? '#'.$fragment : '');
530 530
     }
531 531
 
532 532
     /**
Please login to merge, or discard this patch.
src/Debug/Controller/LayersDebugController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         // The templates for showing exceptions are outside of the normal application
29 29
         // template path. It is therefore necessary to specify the path here.
30 30
         $this->get('php_template_engine')->addPath(
31
-            __DIR__ . '/../Resources/LayersDebug'
31
+            __DIR__.'/../Resources/LayersDebug'
32 32
         );
33 33
 
34 34
         // Render the template
Please login to merge, or discard this patch.
src/Debug/Controller/DebugExceptionController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         // The templates for showing exceptions are outside of the normal application
33 33
         // template path. It is therefore necessary to specify the path here.
34 34
         $this->get('php_template_engine')->addPath(
35
-            __DIR__ . '/../Resources/Exception'
35
+            __DIR__.'/../Resources/Exception'
36 36
         );
37 37
 
38 38
         // Render the template
Please login to merge, or discard this patch.