| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| 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_item', [Runtime::class, 'addItem'], ['is_safe' => ['html']]), |
||
| 17 | new TwigFilter('strands_add_items', [Runtime::class, 'addItems'], ['is_safe' => ['html']]), |
||
| 18 | new TwigFilter('strands_add_cart_items', [Runtime::class, 'addCartItems'], ['is_safe' => ['html']]), |
||
| 19 | ]; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getFunctions(): array |
||
| 26 | ]; |
||
| 27 | } |
||
| 29 |