@@ -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; |
@@ -236,7 +236,7 @@ |
||
236 | 236 | static fn (string $string, bool $binarySafe = false): int => Strings::length($string, $binarySafe) |
237 | 237 | ); |
238 | 238 | |
239 | - $filtered = array_reduce($filtered, static function (array $tmp, string $item): array { |
|
239 | + $filtered = array_reduce($filtered, static function(array $tmp, string $item): array { |
|
240 | 240 | if ($item === '..') { |
241 | 241 | array_pop($tmp); |
242 | 242 | } elseif ($item !== '.') { |
@@ -247,7 +247,7 @@ |
||
247 | 247 | ); |
248 | 248 | |
249 | 249 | // Traverses the $ips array. Set $ip to current value if it's a public IP. |
250 | - array_walk($ips, static function (string $value, int $key) use (&$ip): string { |
|
250 | + array_walk($ips, static function(string $value, int $key) use (&$ip): string { |
|
251 | 251 | if (Environment::isPublicIp($value)) { |
252 | 252 | $ip = $value; |
253 | 253 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | use Rector\Core\ValueObject\PhpVersion; |
13 | 13 | |
14 | -return static function (RectorConfig $rectorConfig): void { |
|
14 | +return static function(RectorConfig $rectorConfig): void { |
|
15 | 15 | $rectorConfig->paths([ |
16 | 16 | __DIR__ . '/src', |
17 | 17 | __DIR__ . '/tests/src', |