| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 10 | class CartMergedSubscriber implements EventSubscriberInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Session |
||
| 14 | */ |
||
| 15 | private $session; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var TranslatorInterface |
||
| 19 | */ |
||
| 20 | private $translator; |
||
| 21 | |||
| 22 | public function __construct( |
||
| 23 | Session $session, |
||
| 24 | TranslatorInterface $translator |
||
| 25 | ) { |
||
| 26 | $this->session = $session; |
||
| 27 | $this->translator = $translator; |
||
| 28 | } |
||
| 29 | |||
| 30 | public static function getSubscribedEvents(): array |
||
| 34 | ]; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function addCartMergedNoticeFlash(CartMergedEvent $event): void |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.