@@ -262,7 +262,7 @@ |
||
| 262 | 262 | throw new InvalidArgumentException('HTTP status code must be an integer'); |
| 263 | 263 | } |
| 264 | 264 | |
| 265 | - if (! ($statusCode >= 100 && $statusCode <= 599)) { |
|
| 265 | + if (!($statusCode >= 100 && $statusCode <= 599)) { |
|
| 266 | 266 | throw new InvalidArgumentException('Invalid HTTP status code'); |
| 267 | 267 | } |
| 268 | 268 | } |
@@ -358,8 +358,8 @@ |
||
| 358 | 358 | * |
| 359 | 359 | * @psalm-suppress MissingClosureParamType |
| 360 | 360 | */ |
| 361 | - array_walk_recursive($files, static function ($file): void { |
|
| 362 | - if (! ($file instanceof UploadedFileInterface)) { |
|
| 361 | + array_walk_recursive($files, static function($file): void { |
|
| 362 | + if (!($file instanceof UploadedFileInterface)) { |
|
| 363 | 363 | throw new InvalidArgumentException('Invalid uploaded files'); |
| 364 | 364 | } |
| 365 | 365 | }); |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $serverParams ??= $_SERVER; |
| 36 | 36 | |
| 37 | 37 | if (array_key_exists('HTTPS', $serverParams)) { |
| 38 | - if (! ('off' === $serverParams['HTTPS'])) { |
|
| 38 | + if (!('off' === $serverParams['HTTPS'])) { |
|
| 39 | 39 | $scheme = 'https://'; |
| 40 | 40 | } |
| 41 | 41 | } |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | throw new InvalidUriComponentException('URI component "fragment" must be a string'); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - $this->value = preg_replace_callback(self::NORMALIZATION_REGEX, function (array $match): string { |
|
| 67 | + $this->value = preg_replace_callback(self::NORMALIZATION_REGEX, function(array $match): string { |
|
| 68 | 68 | /** @var array{0: string, 1?: string} $match */ |
| 69 | 69 | |
| 70 | 70 | return isset($match[1]) ? rawurlencode($match[1]) : $match[0]; |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | throw new InvalidUriComponentException('URI component "password" must be a string'); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - $this->value = preg_replace_callback(self::NORMALIZATION_REGEX, function (array $match): string { |
|
| 67 | + $this->value = preg_replace_callback(self::NORMALIZATION_REGEX, function(array $match): string { |
|
| 68 | 68 | /** @var array{0: string, 1?: string} $match */ |
| 69 | 69 | |
| 70 | 70 | return isset($match[1]) ? rawurlencode($match[1]) : $match[0]; |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | throw new InvalidUriComponentException('URI component "host" must be a string'); |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | - $this->value = preg_replace_callback(self::NORMALIZATION_REGEX, function (array $match): string { |
|
| 68 | + $this->value = preg_replace_callback(self::NORMALIZATION_REGEX, function(array $match): string { |
|
| 69 | 69 | /** @var array{0: string, 1?: string} $match */ |
| 70 | 70 | |
| 71 | 71 | return isset($match[1]) ? rawurlencode($match[1]) : $match[0]; |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | throw new InvalidUriComponentException('URI component "path" must be a string'); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - $this->value = preg_replace_callback(self::NORMALIZATION_REGEX, function (array $match): string { |
|
| 67 | + $this->value = preg_replace_callback(self::NORMALIZATION_REGEX, function(array $match): string { |
|
| 68 | 68 | /** @var array{0: string, 1?: string} $match */ |
| 69 | 69 | |
| 70 | 70 | return isset($match[1]) ? rawurlencode($match[1]) : $match[0]; |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | throw new InvalidUriComponentException('URI component "query" must be a string'); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - $this->value = preg_replace_callback(self::NORMALIZATION_REGEX, function (array $match): string { |
|
| 67 | + $this->value = preg_replace_callback(self::NORMALIZATION_REGEX, function(array $match): string { |
|
| 68 | 68 | /** @var array{0: string, 1?: string} $match */ |
| 69 | 69 | |
| 70 | 70 | return isset($match[1]) ? rawurlencode($match[1]) : $match[0]; |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | throw new InvalidUriComponentException('URI component "user" must be a string'); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - $this->value = preg_replace_callback(self::NORMALIZATION_REGEX, function (array $match): string { |
|
| 67 | + $this->value = preg_replace_callback(self::NORMALIZATION_REGEX, function(array $match): string { |
|
| 68 | 68 | /** @var array{0: string, 1?: string} $match */ |
| 69 | 69 | |
| 70 | 70 | return isset($match[1]) ? rawurlencode($match[1]) : $match[0]; |