@@ -230,11 +230,11 @@ |
||
| 230 | 230 | $path = rtrim(str_replace(['/', '\\'], $separator, $path), $separator); |
| 231 | 231 | |
| 232 | 232 | // Filter through and reduce as needed |
| 233 | - $filtered = array_filter(explode($separator, $path), static function (string $string, bool $binarySafe = false): bool { |
|
| 233 | + $filtered = array_filter(explode($separator, $path), static function(string $string, bool $binarySafe = false): bool { |
|
| 234 | 234 | return Strings::length($string, $binarySafe) > 0; |
| 235 | 235 | }); |
| 236 | 236 | |
| 237 | - $filtered = array_reduce($filtered, static function (array $tmp, string $item): array { |
|
| 237 | + $filtered = array_reduce($filtered, static function(array $tmp, string $item): array { |
|
| 238 | 238 | if ($item === '..') { |
| 239 | 239 | array_pop($tmp); |
| 240 | 240 | } elseif ($item !== '.') { |
@@ -238,12 +238,12 @@ |
||
| 238 | 238 | /** @var list<string> $ips */ |
| 239 | 239 | $ips = Arrays::mapDeep($ips, 'trim'); |
| 240 | 240 | // Filter out any potentially empty entries |
| 241 | - $ips = array_filter($ips, static function (string $string): bool { |
|
| 241 | + $ips = array_filter($ips, static function(string $string): bool { |
|
| 242 | 242 | return Strings::length($string) > 0; |
| 243 | 243 | }); |
| 244 | 244 | |
| 245 | 245 | // Traverses the $ips array. Set $ip to current value if it's a public IP. |
| 246 | - array_walk($ips, static function (string $value, int $key) use (&$ip): string { |
|
| 246 | + array_walk($ips, static function(string $value, int $key) use (&$ip): string { |
|
| 247 | 247 | if (Environment::isPublicIp($value)) { |
| 248 | 248 | $ip = $value; |
| 249 | 249 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | use Rector\Core\ValueObject\PhpVersion; |
| 12 | 12 | use Rector\CodeQuality\Rector\Concat\JoinStringConcatRector; |
| 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', |