Completed
Push — master ( 7511d4...339f55 )
by smiley
01:40
created
src/CurlHandle.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -214,12 +214,12 @@
 block discarded – undo
214 214
 		$options[CURLOPT_HTTPHEADER] = $curlHeaders;
215 215
 
216 216
 		// If the Expect header is not present, prevent curl from adding it
217
-		if (!$this->request->hasHeader('Expect')) {
217
+		if (!$this->request->hasHeader('Expect')){
218 218
 			$options[CURLOPT_HTTPHEADER][] = 'Expect:';
219 219
 		}
220 220
 
221 221
 		// cURL sometimes adds a content-type by default. Prevent this.
222
-		if (!$this->request->hasHeader('Content-Type')) {
222
+		if (!$this->request->hasHeader('Content-Type')){
223 223
 			$options[CURLOPT_HTTPHEADER][] = 'Content-Type:';
224 224
 		}
225 225
 
Please login to merge, or discard this patch.
src/Psr7/Stream.php 1 patch
Unused Use Statements   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,10 @@
 block discarded – undo
12 12
 
13 13
 namespace chillerlan\HTTP\Psr7;
14 14
 
15
+use Exception;
16
+use InvalidArgumentException;
15 17
 use Psr\Http\Message\StreamInterface;
16
-use Exception, InvalidArgumentException, RuntimeException;
18
+use RuntimeException;
17 19
 
18 20
 final class Stream implements StreamInterface{
19 21
 
Please login to merge, or discard this patch.
src/Psr7/UploadedFile.php 1 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, Psr17\StreamFactory};
16 16
 use Psr\Http\Message\{StreamInterface, UploadedFileInterface};
17
-use InvalidArgumentException, RuntimeException;
17
+use InvalidArgumentException;
18
+use RuntimeException;
18 19
 
19 20
 final class UploadedFile implements UploadedFileInterface{
20 21
 
Please login to merge, or discard this patch.