@@ 310-316 (lines=7) @@ | ||
307 | $map = array_map( |
|
308 | function (array $replacement) use ($cwd, $fileSystem) { |
|
309 | $replacement['files'] = array_map( |
|
310 | function (string $path) use ($cwd, $fileSystem) { |
|
311 | if (false === $fileSystem->isAbsolutePath($path)) { |
|
312 | return $cwd.DIRECTORY_SEPARATOR.$path; |
|
313 | } |
|
314 | ||
315 | return $path; |
|
316 | }, |
|
317 | $replacement['files'] |
|
318 | ); |
|
319 | ||
@@ 178-184 (lines=7) @@ | ||
175 | $fileSystem = $this->fileSystem; |
|
176 | ||
177 | $paths = array_map( |
|
178 | function (string $path) use ($cwd, $fileSystem) { |
|
179 | if (false === $fileSystem->isAbsolutePath($path)) { |
|
180 | return $cwd.DIRECTORY_SEPARATOR.$path; |
|
181 | } |
|
182 | ||
183 | return $path; |
|
184 | }, |
|
185 | $input->getArgument(self::PATH_ARG) |
|
186 | ); |
|
187 |