Total Complexity | 6 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class PostProcessHtml extends AbstractPostProcess |
||
20 | { |
||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | public function getName(): string |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function init($options) |
||
33 | { |
||
34 | $this->type = 'html'; |
||
35 | parent::init($options); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function setProcessor(): void |
||
42 | { |
||
43 | $this->processor = new HtmlMin(); |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function processFile(\Symfony\Component\Finder\SplFileInfo $file): string |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function encode(string $content): string |
||
60 | { |
||
61 | return json_encode($content); |
||
62 | } |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function decode(string $content): string |
||
70 | } |
||
71 | } |
||
72 |