| Total Complexity | 9 | 
| Total Lines | 44 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 21 | final class Compactors | ||
| 22 | { | ||
| 23 | private $compactors; | ||
| 24 | private $scoperCompactor; | ||
| 25 | |||
| 26 | public function __construct(Compactor ...$compactors) | ||
| 35 | } | ||
| 36 | } | ||
| 37 | } | ||
| 38 | |||
| 39 | public function compactContents(string $file, string $contents): string | ||
| 40 |     { | ||
| 41 | return (string) array_reduce( | ||
| 42 | $this->compactors, | ||
| 43 |             function (string $contents, Compactor $compactor) use ($file): string { | ||
| 44 | return $compactor->compact($file, $contents); | ||
| 45 | }, | ||
| 46 | $contents | ||
| 47 | ); | ||
| 48 | } | ||
| 49 | |||
| 50 | public function getScoperWhitelist(): ?Whitelist | ||
| 53 | } | ||
| 54 | |||
| 55 | public function registerWhitelist(Whitelist $whitelist): void | ||
| 59 | } | ||
| 60 | } | ||
| 61 | |||
| 62 | public function toArray(): array | ||
| 65 | } | ||
| 66 | } | ||
| 67 |