Completed
Push — master ( db4edc...abcefe )
by smiley
01:31
created
src/Psr7/UploadedFile.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@
 block discarded – undo
203 203
 	 *
204 204
 	 * @author Michael Dowling and contributors to guzzlehttp/psr7
205 205
 	 *
206
-	 * @param StreamInterface $dest   Stream to write to
206
+	 * @param \Psr\Http\Message\StreamInterface $dest   Stream to write to
207 207
 	 *
208 208
 	 * @throws \RuntimeException on error
209 209
 	 */
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@
 block discarded – undo
14 14
 
15 15
 use chillerlan\HTTP\Psr17\StreamFactory;
16 16
 use Psr\Http\Message\{StreamInterface, UploadedFileInterface};
17
-use InvalidArgumentException, RuntimeException;
17
+use InvalidArgumentException;
18
+use RuntimeException;
18 19
 
19 20
 use function chillerlan\HTTP\Psr17\create_stream_from_input;
20 21
 use function in_array, is_string, is_writable, move_uploaded_file, php_sapi_name,rename;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 use InvalidArgumentException, RuntimeException;
18 18
 
19 19
 use function chillerlan\HTTP\Psr17\create_stream_from_input;
20
-use function in_array, is_string, is_writable, move_uploaded_file, php_sapi_name,rename;
20
+use function in_array, is_string, is_writable, move_uploaded_file, php_sapi_name, rename;
21 21
 
22 22
 use const UPLOAD_ERR_CANT_WRITE, UPLOAD_ERR_EXTENSION, UPLOAD_ERR_FORM_SIZE, UPLOAD_ERR_INI_SIZE,
23 23
 	UPLOAD_ERR_NO_FILE, UPLOAD_ERR_NO_TMP_DIR, UPLOAD_ERR_OK, UPLOAD_ERR_PARTIAL;
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 	/**
161 161
 	 * @inheritDoc
162 162
 	 */
163
-	public function getSize():?int{
163
+	public function getSize(): ?int{
164 164
 		return $this->size;
165 165
 	}
166 166
 
@@ -174,14 +174,14 @@  discard block
 block discarded – undo
174 174
 	/**
175 175
 	 * @inheritDoc
176 176
 	 */
177
-	public function getClientFilename():?string{
177
+	public function getClientFilename(): ?string{
178 178
 		return $this->clientFilename;
179 179
 	}
180 180
 
181 181
 	/**
182 182
 	 * @inheritDoc
183 183
 	 */
184
-	public function getClientMediaType():?string{
184
+	public function getClientMediaType(): ?string{
185 185
 		return $this->clientMediaType;
186 186
 	}
187 187
 
Please login to merge, or discard this patch.
src/Psr18/HTTPClientAbstract.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 namespace chillerlan\HTTP\Psr18;
14 14
 
15 15
 use chillerlan\HTTP\HTTPOptions;
16
-use chillerlan\HTTP\Psr7\Request;
17 16
 use chillerlan\HTTP\Psr17\ResponseFactory;
17
+use chillerlan\HTTP\Psr7\Request;
18 18
 use chillerlan\Settings\SettingsContainerInterface;
19 19
 use Psr\Http\Message\{ResponseFactoryInterface, ResponseInterface};
20 20
 use Psr\Log\{LoggerAwareInterface, LoggerAwareTrait, LoggerInterface, NullLogger};
Please login to merge, or discard this patch.
src/Psr7/MultipartStream.php 2 patches
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@
 block discarded – undo
14 14
 
15 15
 namespace chillerlan\HTTP\Psr7;
16 16
 
17
-use InvalidArgumentException, RuntimeException;
17
+use InvalidArgumentException;
18
+use RuntimeException;
18 19
 
19 20
 use function chillerlan\HTTP\Psr17\{create_stream, create_stream_from_input};
20 21
 use function array_merge, basename, pathinfo, random_bytes, sha1, strlen, strtolower, substr;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
 	/**
174 174
 	 * @inheritDoc
175 175
 	 */
176
-	public function getSize():?int{
176
+	public function getSize(): ?int{
177 177
 		return $this->stream->getSize() + strlen($this->boundary) + 6;
178 178
 	}
179 179
 
Please login to merge, or discard this patch.
src/Psr7/Stream.php 2 patches
Unused Use Statements   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,9 @@
 block discarded – undo
12 12
 
13 13
 namespace chillerlan\HTTP\Psr7;
14 14
 
15
-use Exception, InvalidArgumentException, RuntimeException;
15
+use Exception;
16
+use InvalidArgumentException;
17
+use RuntimeException;
16 18
 
17 19
 use function clearstatcache, fclose, feof, fread, fstat, ftell, fwrite, is_resource, stream_get_contents,
18 20
 	stream_get_meta_data, trigger_error;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
 	/**
131 131
 	 * @inheritDoc
132 132
 	 */
133
-	public function getSize():?int{
133
+	public function getSize(): ?int{
134 134
 
135 135
 		if($this->size !== null){
136 136
 			return $this->size;
Please login to merge, or discard this patch.
src/HTTPOptionsTrait.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -124,12 +124,12 @@
 block discarded – undo
124 124
 
125 125
 		// @codeCoverageIgnoreStart
126 126
 		$msg = 'No system CA bundle could be found in any of the the common system locations. '
127
-		       .'In order to verify peer certificates, you will need to supply the path on disk to a certificate bundle via  '
128
-		       .'HTTPOptions::$ca_info or HTTPOptions::$curl_options. If you do not need a specific certificate bundle, '
129
-		       .'then you can download a CA bundle over here: https://curl.haxx.se/docs/caextract.html. '
130
-		       .'Once you have a CA bundle available on disk, you can set the "curl.cainfo" php.ini setting to point '
131
-		       .'to the path of the file, allowing you to omit the $ca_info or $curl_options setting. '
132
-		       .'See http://curl.haxx.se/docs/sslcerts.html for more information.';
127
+			   .'In order to verify peer certificates, you will need to supply the path on disk to a certificate bundle via  '
128
+			   .'HTTPOptions::$ca_info or HTTPOptions::$curl_options. If you do not need a specific certificate bundle, '
129
+			   .'then you can download a CA bundle over here: https://curl.haxx.se/docs/caextract.html. '
130
+			   .'Once you have a CA bundle available on disk, you can set the "curl.cainfo" php.ini setting to point '
131
+			   .'to the path of the file, allowing you to omit the $ca_info or $curl_options setting. '
132
+			   .'See http://curl.haxx.se/docs/sslcerts.html for more information.';
133 133
 
134 134
 		throw new ClientException($msg);
135 135
 		// @codeCoverageIgnoreEnd
Please login to merge, or discard this patch.
src/Psr7/Uri.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 	 * @return int|null
313 313
 	 * @throws \InvalidArgumentException
314 314
 	 */
315
-	protected function filterPort($port):?int{
315
+	protected function filterPort($port): ?int{
316 316
 
317 317
 		if($port === null){
318 318
 			return null;
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 	/**
331 331
 	 * @inheritDoc
332 332
 	 */
333
-	public function getPort():?int{
333
+	public function getPort(): ?int{
334 334
 		return $this->port;
335 335
 	}
336 336
 
Please login to merge, or discard this patch.
src/Psr7/Message.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@
 block discarded – undo
231 231
 			}
232 232
 			else{
233 233
 				$this->headerNames[$normalized] = $name;
234
-				$this->headers[$name]         = $value;
234
+				$this->headers[$name] = $value;
235 235
 			}
236 236
 
237 237
 		}
Please login to merge, or discard this patch.
src/Psr7/StreamAbstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
 	 * @inheritDoc
101 101
 	 * @codeCoverageIgnore
102 102
 	 */
103
-	public function getSize():?int{
103
+	public function getSize(): ?int{
104 104
 		return $this->stream->getSize();
105 105
 	}
106 106
 
Please login to merge, or discard this patch.
src/CurlUtils/CurlHandle.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	}
85 85
 
86 86
 	/**
87
-	 * @return void
87
+	 * @return CurlHandle
88 88
 	 */
89 89
 	public function close():CurlHandleInterface{
90 90
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	}
97 97
 
98 98
 	/**
99
-	 * @return void
99
+	 * @return CurlHandle
100 100
 	 */
101 101
 	public function reset():CurlHandleInterface{
102 102
 
Please login to merge, or discard this patch.