Completed
Push — master ( 66a152...f0c72f )
by Auke
03:39
created
src/http.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     /**
22 22
      * Send a HTTP request with a specific method, GET, POST, etc.
23
-     * @param null  $method The method to use, GET, POST, etc.
23
+     * @param string  $method The method to use, GET, POST, etc.
24 24
      * @param null  $url    The URL to request
25 25
      * @param null  $query  The query string
26 26
      * @param array $options    Any of the HTTP stream context options, e.g. extra headers.
Please login to merge, or discard this patch.
src/http/Client.php 1 patch
Doc Comments   -6 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@  discard block
 block discarded – undo
20 20
     /**
21 21
     * Send a HTTP GET request and return the response
22 22
     * @param string $url The URL to request
23
-    * @param mixed $query The query paramaters as a string or array
24 23
     * @param array $options Any of the HTTP stream context options, e.g. extra headers.
25 24
     * @return string
26 25
     */
@@ -29,7 +28,6 @@  discard block
 block discarded – undo
29 28
     /**
30 29
      * Send a HTTP POST request and return the response
31 30
      * @param string $url The URL to request
32
-     * @param mixed $query The query paramaters as a string or array
33 31
      * @param array $options Any of the HTTP stream context options, e.g. extra headers.
34 32
      * @return string
35 33
      */
@@ -38,7 +36,6 @@  discard block
 block discarded – undo
38 36
     /**
39 37
      * Send a HTTP PUT request and return the response
40 38
      * @param string $url The URL to request
41
-     * @param mixed $query The query paramaters as a string or array
42 39
      * @param array $options Any of the HTTP stream context options, e.g. extra headers.
43 40
      * @return string
44 41
      */
@@ -47,7 +44,6 @@  discard block
 block discarded – undo
47 44
     /**
48 45
      * Send a HTTP DELETE request and return the response
49 46
      * @param string $url The URL to request
50
-     * @param mixed $query The query paramaters as a string or array
51 47
      * @param array $options Any of the HTTP stream context options, e.g. extra headers.
52 48
      * @return string
53 49
      */
@@ -55,9 +51,7 @@  discard block
 block discarded – undo
55 51
 
56 52
     /**
57 53
      * Send a HTTP request and return the response
58
-     * @param string $method The method to use, GET, POST, etc.
59 54
      * @param string $url The URL to request
60
-     * @param mixed $query The query paramaters as a string or array
61 55
      * @param array $options Any of the HTTP stream context options, e.g. extra headers.
62 56
      * @return string
63 57
      */
Please login to merge, or discard this patch.
src/http/ClientStream.php 1 patch
Doc Comments   +2 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,10 +47,9 @@  discard block
 block discarded – undo
47 47
 
48 48
     /**
49 49
      * Send a HTTP request and return the response
50
-     * @param null  $method The method to use, GET, POST, etc.
51
-     * @param null  $url    The URL to request
52
-     * @param null  $query  The query string
50
+     * @param null|string  $url    The URL to request
53 51
      * @param array $options Any of the HTTP stream context options, e.g. extra headers.
52
+     * @param null|string $type
54 53
      * @return string
55 54
      */
56 55
     public function request( $type, $url, $request = null, $options = [] )
@@ -94,7 +93,6 @@  discard block
 block discarded – undo
94 93
     /**
95 94
      * Send a GET request
96 95
      * @param null  $url    The URL to request
97
-     * @param null  $query  The query string
98 96
      * @param array $options Any of the HTTP stream context options, e.g. extra headers.
99 97
      * @return string
100 98
      */
@@ -106,7 +104,6 @@  discard block
 block discarded – undo
106 104
     /**
107 105
      * Send a POST request
108 106
      * @param null  $url    The URL to request
109
-     * @param null  $query  The query string
110 107
      * @param array $options Any of the HTTP stream context options, e.g. extra headers.
111 108
      * @return string
112 109
      */
@@ -118,7 +115,6 @@  discard block
 block discarded – undo
118 115
     /**
119 116
      * Send a PUT request
120 117
      * @param null  $url    The URL to request
121
-     * @param null  $query  The query string
122 118
      * @param array $options Any of the HTTP stream context options, e.g. extra headers.
123 119
      * @return string
124 120
      */
Please login to merge, or discard this patch.
src/url/Url.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,7 @@  discard block
 block discarded – undo
34 34
     /**
35 35
      *	@param string $url The URL to parse, the query part will remain a string.
36 36
      *  @param QueryInterface queryObject Optional. An object that parses the query string.
37
+     * @param Query $queryObject
37 38
      */
38 39
     public function __construct($url, $queryObject = null)
39 40
     {
@@ -116,7 +117,7 @@  discard block
 block discarded – undo
116 117
 
117 118
     /**
118 119
      * @param $components
119
-     * @param $validComponents
120
+     * @param string[] $validComponents
120 121
      */
121 122
     private function importUrlComponents($components, $validComponents)
122 123
     {
Please login to merge, or discard this patch.