| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | public function getFunctions() |
||
| 21 | { |
||
| 22 | return array( |
||
| 23 | new Twig_SimpleFunction('alpixel_get_menu', array($this, 'get')), |
||
| 24 | new Twig_SimpleFunction('alpixel_render_menu', array($this, 'render'), array( |
||
| 25 | 'is_safe' => array('html'), |
||
| 26 | 'needs_environment' => true, |
||
| 27 | )), |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | |||
| 48 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.