@@ -7,7 +7,7 @@ |
||
7 | 7 | * @copyright (c) 2018, Sebastian Rapetti |
8 | 8 | * @license http://opensource.org/licenses/MIT MIT License |
9 | 9 | */ |
10 | -declare(strict_types=1); |
|
10 | +declare(strict_types = 1); |
|
11 | 11 | |
12 | 12 | namespace Linna\Psr7; |
13 | 13 |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | * @copyright (c) 2018, Sebastian Rapetti |
8 | 8 | * @license http://opensource.org/licenses/MIT MIT License |
9 | 9 | */ |
10 | -declare(strict_types=1); |
|
10 | +declare(strict_types = 1); |
|
11 | 11 | |
12 | 12 | namespace Linna\Psr7; |
13 | 13 | |
@@ -281,8 +281,7 @@ discard block |
||
281 | 281 | //if key is empty strung |
282 | 282 | return ($key === '') ? |
283 | 283 | //return metadata |
284 | - $metadata : |
|
285 | - //else check if key exist and if key exist return as array else return void array |
|
284 | + $metadata : //else check if key exist and if key exist return as array else return void array |
|
286 | 285 | (isset($metadata[$key]) ? [$key => $metadata[$key]] : []); |
287 | 286 | } |
288 | 287 | } |
@@ -21,13 +21,13 @@ |
||
21 | 21 | abstract class Message implements MessageInterface |
22 | 22 | { |
23 | 23 | /** |
24 | - * @var string Protocol version. |
|
25 | - */ |
|
24 | + * @var string Protocol version. |
|
25 | + */ |
|
26 | 26 | protected $protocolVersion = '1.1'; |
27 | 27 | |
28 | 28 | /** |
29 | - * @var array Allowed protocol versions. |
|
30 | - */ |
|
29 | + * @var array Allowed protocol versions. |
|
30 | + */ |
|
31 | 31 | protected static $allowedProtocolVersions = [ |
32 | 32 | '1.0' => true, |
33 | 33 | '1.1' => true, |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | * @copyright (c) 2018, Sebastian Rapetti |
8 | 8 | * @license http://opensource.org/licenses/MIT MIT License |
9 | 9 | */ |
10 | -declare(strict_types=1); |
|
10 | +declare(strict_types = 1); |
|
11 | 11 | |
12 | 12 | namespace Linna\Psr7; |
13 | 13 | |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | { |
93 | 93 | $this->normalize($name); |
94 | 94 | |
95 | - return isset($this->headers[$name]) ? $this->headers[$name] : []; |
|
95 | + return isset($this->headers[$name]) ? $this->headers[$name] : []; |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
@@ -7,7 +7,7 @@ |
||
7 | 7 | * @copyright (c) 2018, Sebastian Rapetti |
8 | 8 | * @license http://opensource.org/licenses/MIT MIT License |
9 | 9 | */ |
10 | -declare(strict_types=1); |
|
10 | +declare(strict_types = 1); |
|
11 | 11 | |
12 | 12 | namespace Linna\Psr7; |
13 | 13 |
@@ -270,10 +270,10 @@ |
||
270 | 270 | |
271 | 271 | return $this->createUriString( |
272 | 272 | ($scheme !== '') ? $scheme.'://' : '', |
273 | - $this->getAuthority(), |
|
274 | - $this->getPath(), |
|
275 | - ($query !== '') ? '?'.$query : '', |
|
276 | - ($fragment !== '') ? '#'.$fragment : '' |
|
273 | + $this->getAuthority(), |
|
274 | + $this->getPath(), |
|
275 | + ($query !== '') ? '?'.$query : '', |
|
276 | + ($fragment !== '') ? '#'.$fragment : '' |
|
277 | 277 | ); |
278 | 278 | } |
279 | 279 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | * @copyright (c) 2018, Sebastian Rapetti |
8 | 8 | * @license http://opensource.org/licenses/MIT MIT License |
9 | 9 | */ |
10 | -declare(strict_types=1); |
|
10 | +declare(strict_types = 1); |
|
11 | 11 | |
12 | 12 | namespace Linna\Psr7; |
13 | 13 |