| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function compactContents(string $file, string $contents): string |
||
| 42 | { |
||
| 43 | return (string) array_reduce( |
||
| 44 | $this->compactors, |
||
| 45 | static function (string $contents, Compactor $compactor) use ($file): string { |
||
| 46 | return $compactor->compact($file, $contents); |
||
| 47 | }, |
||
| 48 | $contents |
||
| 49 | ); |
||
| 69 |