Completed
Push — master ( 7537d8...e9481c )
by Bohuslav
02:34
created
src/Message.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -276,6 +276,9 @@  discard block
 block discarded – undo
276 276
         return $clone;
277 277
     }
278 278
 
279
+    /**
280
+     * @param string $headerName
281
+     */
279 282
     private function validateHeaderName($headerName)
280 283
     {
281 284
         if (is_array($headerName)) {
@@ -283,6 +286,9 @@  discard block
 block discarded – undo
283 286
         }
284 287
     }
285 288
 
289
+    /**
290
+     * @param string $version
291
+     */
286 292
     private function validateProtocol($version)
287 293
     {
288 294
         $valid = [
Please login to merge, or discard this patch.
src/Request.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use Psr\Http\Message\UriInterface;
10 10
 
11 11
 // \HttpMessage
12
-use Kambo\HttpMessage\Uri;
13 12
 use Kambo\HttpMessage\Message;
14 13
 use Kambo\HttpMessage\Headers;
15 14
 use Kambo\HttpMessage\RequestTrait;
Please login to merge, or discard this patch.
src/RequestTrait.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,13 +5,11 @@
 block discarded – undo
5 5
 use InvalidArgumentException;
6 6
 
7 7
 // \Psr
8
-use Psr\Http\Message\RequestInterface;
9 8
 use Psr\Http\Message\UriInterface;
10 9
 
11 10
 // \HttpMessage
12 11
 use Kambo\HttpMessage\Uri;
13 12
 use Kambo\HttpMessage\Message;
14
-use Kambo\HttpMessage\Headers;
15 13
 
16 14
 /**
17 15
  * Shared methods for outgoing, client-side request and server request.
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             $target = '/';
66 66
             if ($this->uri->getPath() !== null) {
67 67
                 $target = $this->uri->getPath();
68
-                $target .= (!empty($this->uri->getQuery())) ? '?'.$this->uri->getQuery() : '';
68
+                $target .= (!empty($this->uri->getQuery())) ? '?' . $this->uri->getQuery() : '';
69 69
             }
70 70
 
71 71
             $this->requestTarget = $target;
Please login to merge, or discard this patch.