Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class MinifyTwigExtension extends AbstractExtension |
||
22 | { |
||
23 | // Public Methods |
||
24 | // ========================================================================= |
||
25 | |||
26 | /** |
||
27 | * Returns the name of the extension. |
||
28 | * |
||
29 | * @return string The extension name |
||
30 | */ |
||
31 | public function getName(): string |
||
32 | { |
||
33 | return 'minify'; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Returns the token parser instances to add to the existing list. |
||
38 | * |
||
39 | * @return array An array of Twig_TokenParserInterface or |
||
40 | * Twig_TokenParserBrokerInterface instances |
||
41 | */ |
||
42 | public function getTokenParsers(): array |
||
46 | ]; |
||
47 | } |
||
49 |