@@ -239,7 +239,7 @@ |
||
239 | 239 | static fn (string $string, bool $binarySafe = false): int => Strings::length($string, $binarySafe) |
240 | 240 | ); |
241 | 241 | |
242 | - $filtered = array_reduce($filtered, static function (array $tmp, string $item): array { |
|
242 | + $filtered = array_reduce($filtered, static function(array $tmp, string $item): array { |
|
243 | 243 | if ($item === '..') { |
244 | 244 | array_pop($tmp); |
245 | 245 | } elseif ($item !== '.') { |
@@ -479,7 +479,8 @@ |
||
479 | 479 | public static function randomBytes(int $length): string |
480 | 480 | { |
481 | 481 | // Sanity check |
482 | - if ($length < 1) { // @phpstan-ignore-line |
|
482 | + if ($length < 1) { |
|
483 | +// @phpstan-ignore-line |
|
483 | 484 | throw new RandomException('$length must be greater than 1.'); |
484 | 485 | } |
485 | 486 |
@@ -280,10 +280,10 @@ |
||
280 | 280 | * @return array<string, int|float|string> |
281 | 281 | */ |
282 | 282 | public static function haversineDistance( |
283 | - int|float $startingLatitude, |
|
284 | - int|float $startingLongitude, |
|
285 | - int|float $endingLatitude, |
|
286 | - int|float $endingLongitude, |
|
283 | + int | float $startingLatitude, |
|
284 | + int | float $startingLongitude, |
|
285 | + int | float $endingLatitude, |
|
286 | + int | float $endingLongitude, |
|
287 | 287 | int $precision = 0 |
288 | 288 | ): array { |
289 | 289 | // Radians |
@@ -101,7 +101,7 @@ |
||
101 | 101 | * |
102 | 102 | * @throws RuntimeException If $array is not accessible |
103 | 103 | */ |
104 | - public static function set(array | ArrayAccess &$array, string | int | null $key, mixed $value): mixed |
|
104 | + public static function set(array | ArrayAccess & $array, string | int | null $key, mixed $value): mixed |
|
105 | 105 | { |
106 | 106 | if (is_null($key)) { |
107 | 107 | return $array = $value; |
@@ -344,7 +344,7 @@ |
||
344 | 344 | * |
345 | 345 | * @throws RuntimeException|ArgumentCountError |
346 | 346 | */ |
347 | - public static function iniSet(string $option, string|int|float|bool|null $value): string | false |
|
347 | + public static function iniSet(string $option, string | int | float | bool | null $value): string | false |
|
348 | 348 | { |
349 | 349 | // @codeCoverageIgnoreStart |
350 | 350 | if (!function_exists('ini_set')) { |
@@ -9,7 +9,7 @@ |
||
9 | 9 | use Rector\CodeQuality\Rector\ClassMethod\LocallyCalledStaticMethodToNonStaticRector; |
10 | 10 | use Rector\Core\ValueObject\PhpVersion; |
11 | 11 | |
12 | -return static function (RectorConfig $rectorConfig): void { |
|
12 | +return static function(RectorConfig $rectorConfig): void { |
|
13 | 13 | $rectorConfig->paths([ |
14 | 14 | __DIR__ . '/src', |
15 | 15 | __DIR__ . '/tests/src', |