@@ -45,7 +45,7 @@ |
||
45 | 45 | { |
46 | 46 | $files ??= $_FILES; |
47 | 47 | |
48 | - $walker = static function ($path, $size, $error, $name, $type) use (&$walker) { |
|
48 | + $walker = static function($path, $size, $error, $name, $type) use (&$walker) { |
|
49 | 49 | if (!is_array($path)) { |
50 | 50 | // It makes no sense to create a stream if the file has not been successfully uploaded. |
51 | 51 | $stream = UPLOAD_ERR_OK <> $error ? null : new FileStream($path, 'rb'); |
@@ -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 file'); |
364 | 364 | } |
365 | 365 | }); |
@@ -64,7 +64,7 @@ |
||
64 | 64 | throw new InvalidArgumentException('URI component "path" must be a string'); |
65 | 65 | } |
66 | 66 | |
67 | - $this->value = (string) preg_replace_callback(self::NORMALIZATION_REGEX, function (array $match): string { |
|
67 | + $this->value = (string) 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 InvalidArgumentException('URI component "user" must be a string'); |
65 | 65 | } |
66 | 66 | |
67 | - $this->value = (string) preg_replace_callback(self::NORMALIZATION_REGEX, function (array $match): string { |
|
67 | + $this->value = (string) 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 InvalidArgumentException('URI component "password" must be a string'); |
65 | 65 | } |
66 | 66 | |
67 | - $this->value = (string) preg_replace_callback(self::NORMALIZATION_REGEX, function (array $match): string { |
|
67 | + $this->value = (string) 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 InvalidArgumentException('URI component "host" must be a string'); |
66 | 66 | } |
67 | 67 | |
68 | - $this->value = (string) preg_replace_callback(self::NORMALIZATION_REGEX, function (array $match): string { |
|
68 | + $this->value = (string) 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 InvalidArgumentException('URI component "query" must be a string'); |
65 | 65 | } |
66 | 66 | |
67 | - $this->value = (string) preg_replace_callback(self::NORMALIZATION_REGEX, function (array $match): string { |
|
67 | + $this->value = (string) 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 InvalidArgumentException('URI component "fragment" must be a string'); |
65 | 65 | } |
66 | 66 | |
67 | - $this->value = (string) preg_replace_callback(self::NORMALIZATION_REGEX, function (array $match): string { |
|
67 | + $this->value = (string) 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]; |