| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | $processFile = static function (string $file) use ($cwd, $mapFile, $compactors): array { |
||
| 23 | chdir($cwd); |
||
| 24 | |||
| 25 | // Keep the fully qualified call here since this function may be executed without the right autoloading |
||
| 26 | // mechanism |
||
| 27 | \KevinGH\Box\register_aliases(); |
||
| 28 | if (true === \KevinGH\Box\is_parallel_processing_enabled()) { |
||
| 29 | \KevinGH\Box\register_error_handler(); |
||
| 30 | } |
||
| 31 | |||
| 32 | $contents = file_contents($file); |
||
| 33 | |||
| 34 | $local = $mapFile($file); |
||
| 35 | |||
| 36 | $processedContents = $compactors->compact($local, $contents); |
||
| 37 | |||
| 38 | return [$local, $processedContents, $compactors->getScoperWhitelist()]; |
||
| 39 | }; |
||
| 44 |