Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
47 | public function getFunctions(): array |
||
48 | { |
||
49 | return [ |
||
50 | new TwigFunction('elementExists', function ($name) { |
||
51 | return $this->view->elementExists($name); |
||
52 | }), |
||
53 | new TwigFunction('getVars', function () { |
||
54 | return $this->view->getVars(); |
||
55 | }), |
||
56 | new TwigFunction('get', function ($var, $default = null) { |
||
57 | return $this->view->get($var, $default); |
||
58 | }), |
||
59 | ]; |
||
60 | } |
||
61 | |||
72 |