@@ -100,12 +100,12 @@ discard block |
||
100 | 100 | public static function invalidPathChars(): array |
101 | 101 | { |
102 | 102 | return Collection::from(self::INVALID_PATH_ASCII) |
103 | - ->map( |
|
104 | - function (string $ascii) { |
|
105 | - return chr($ascii); |
|
106 | - } |
|
107 | - ) |
|
108 | - ->toArray(); |
|
103 | + ->map( |
|
104 | + function (string $ascii) { |
|
105 | + return chr($ascii); |
|
106 | + } |
|
107 | + ) |
|
108 | + ->toArray(); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |
@@ -158,10 +158,10 @@ discard block |
||
158 | 158 | private static function hasIllegalCharacter(string $path): bool |
159 | 159 | { |
160 | 160 | return Collection::from(self::INVALID_PATH_ASCII) |
161 | - ->some( |
|
162 | - function (string $ascii) use ($path): bool { |
|
163 | - return strpos($path, chr($ascii)); |
|
164 | - } |
|
165 | - ); |
|
161 | + ->some( |
|
162 | + function (string $ascii) use ($path): bool { |
|
163 | + return strpos($path, chr($ascii)); |
|
164 | + } |
|
165 | + ); |
|
166 | 166 | } |
167 | 167 | } |