1 | <?php |
||
24 | class HtmlExtension extends AbstractTwigExtension implements EngineExtensionInterface |
||
25 | { |
||
26 | /** |
||
27 | * For url parse |
||
28 | */ |
||
29 | use UrlUtils; |
||
30 | |||
31 | /** |
||
32 | * @var Request |
||
33 | */ |
||
34 | protected $request; |
||
35 | |||
36 | /** |
||
37 | * Returns the name of the extension. |
||
38 | * |
||
39 | * @return string The extension name |
||
40 | */ |
||
41 | public function getName() |
||
45 | |||
46 | /** |
||
47 | * Returns a list of functions to add to the existing list. |
||
48 | * |
||
49 | * @return array An array of functions |
||
50 | */ |
||
51 | public function getFunctions() |
||
72 | |||
73 | /** |
||
74 | * @return Request |
||
75 | */ |
||
76 | public function getRequest() |
||
83 | |||
84 | /** |
||
85 | * Creates an HTML style tag |
||
86 | * |
||
87 | * @param string $file |
||
88 | * @param string $path |
||
89 | * @param array $attr |
||
90 | * |
||
91 | * @return string |
||
92 | */ |
||
93 | public function addCss($file, $path='/css', $attr = []) |
||
104 | |||
105 | public function addJs($file, $path='/stylesheets') |
||
110 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.