@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Nyholm\Psr7; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Nyholm\Psr7; |
6 | 6 | |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | */ |
186 | 186 | private function trimHeaderValues(array $values): array |
187 | 187 | { |
188 | - return array_map(function ($value) { |
|
188 | + return array_map(function($value) { |
|
189 | 189 | return trim($value, " \t"); |
190 | 190 | }, $values); |
191 | 191 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Nyholm\Psr7\Factory; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Nyholm\Psr7; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Nyholm\Psr7\Factory; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Nyholm\Psr7\Factory; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Nyholm\Psr7; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Nyholm\Psr7; |
6 | 6 |
@@ -124,11 +124,17 @@ discard block |
||
124 | 124 | return in_array(gettype($param), ['string', 'NULL']); |
125 | 125 | } |
126 | 126 | |
127 | + /** |
|
128 | + * @param string $param |
|
129 | + */ |
|
127 | 130 | private function isStringNotEmpty($param): bool |
128 | 131 | { |
129 | 132 | return is_string($param) && false === empty($param); |
130 | 133 | } |
131 | 134 | |
135 | + /** |
|
136 | + * @param string|null $clientFilename |
|
137 | + */ |
|
132 | 138 | private function setClientFilename($clientFilename): void |
133 | 139 | { |
134 | 140 | if (false === $this->isStringOrNull($clientFilename)) { |
@@ -138,6 +144,9 @@ discard block |
||
138 | 144 | $this->clientFilename = $clientFilename; |
139 | 145 | } |
140 | 146 | |
147 | + /** |
|
148 | + * @param string|null $clientMediaType |
|
149 | + */ |
|
141 | 150 | private function setClientMediaType($clientMediaType): void |
142 | 151 | { |
143 | 152 | if (false === $this->isStringOrNull($clientMediaType)) { |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Nyholm\Psr7; |
6 | 6 |