| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class WidgetExtension extends AbstractExtension |
||
| 12 | { |
||
| 13 | public function getFilters(): array |
||
| 14 | { |
||
| 15 | return [ |
||
| 16 | new TwigFilter('strands_add_items', [Runtime::class, 'addItems'], ['is_safe' => ['html']]), |
||
| 17 | new TwigFilter('strands_add_cart_items', [Runtime::class, 'addCartItems'], ['is_safe' => ['html']]), |
||
| 18 | ]; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getFunctions(): array |
||
| 25 | ]; |
||
| 26 | } |
||
| 28 |