Completed
Push — master ( 71b082...d4eb58 )
by smiley
02:29
created
src/Psr7/MultipartStream.php 4 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -149,6 +149,9 @@
 block discarded – undo
149 149
 	}
150 150
 
151 151
 
152
+	/**
153
+	 * @param string $key
154
+	 */
152 155
 	private function hasHeader(array $headers, $key){
153 156
 		$lowercaseHeader = strtolower($key);
154 157
 		foreach ($headers as $k => $v) {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,8 +14,9 @@
 block discarded – undo
14 14
 
15 15
 namespace chillerlan\HTTP\Psr7;
16 16
 
17
+use InvalidArgumentException;
18
+use RuntimeException;
17 19
 use chillerlan\HTTP\Psr17;
18
-use InvalidArgumentException, RuntimeException;
19 20
 
20 21
 /**
21 22
  * @property \chillerlan\HTTP\Psr7\AppendStream $stream
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -151,8 +151,8 @@  discard block
 block discarded – undo
151 151
 
152 152
 	private function hasHeader(array $headers, $key){
153 153
 		$lowercaseHeader = strtolower($key);
154
-		foreach ($headers as $k => $v) {
155
-			if (strtolower($k) === $lowercaseHeader) {
154
+		foreach($headers as $k => $v){
155
+			if(strtolower($k) === $lowercaseHeader){
156 156
 				return true;
157 157
 			}
158 158
 		}
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 	/**
171 171
 	 * @inheritdoc
172 172
 	 */
173
-	public function getSize():?int{
173
+	public function getSize(): ?int{
174 174
 		return $this->stream->getSize() + strlen($this->boundary) + 6;
175 175
 	}
176 176
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -151,8 +151,8 @@
 block discarded – undo
151 151
 
152 152
 	private function hasHeader(array $headers, $key){
153 153
 		$lowercaseHeader = strtolower($key);
154
-		foreach ($headers as $k => $v) {
155
-			if (strtolower($k) === $lowercaseHeader) {
154
+		foreach ($headers as $k => $v){
155
+			if (strtolower($k) === $lowercaseHeader){
156 156
 				return true;
157 157
 			}
158 158
 		}
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,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
 /**
18 20
  * @property resource $stream
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
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
 	/**
96 96
 	 * @inheritdoc
97 97
 	 */
98
-	public function getSize():?int{
98
+	public function getSize(): ?int{
99 99
 		return $this->stream->getSize();
100 100
 	}
101 101
 
Please login to merge, or discard this patch.