Code Duplication    Length = 15-17 lines in 2 locations

src/Controller/AddressBook/UpdateAddressAction.php 1 location

@@ 68-84 (lines=17) @@
65
     * @param AddressRepositoryInterface $addressRepository
66
     * @param TokenStorageInterface $tokenStorage
67
     */
68
    public function __construct(
69
        ViewHandlerInterface $viewHandler,
70
        ValidatorInterface $validator,
71
        CommandBus $bus,
72
        ValidationErrorViewFactoryInterface $validationErrorViewFactory,
73
        AddressBookViewFactoryInterface $addressViewFactory,
74
        AddressRepositoryInterface $addressRepository,
75
        TokenStorageInterface $tokenStorage
76
    ) {
77
        $this->viewHandler = $viewHandler;
78
        $this->validator = $validator;
79
        $this->bus = $bus;
80
        $this->validationErrorViewFactory = $validationErrorViewFactory;
81
        $this->addressBookViewFactory = $addressViewFactory;
82
        $this->addressRepository = $addressRepository;
83
        $this->tokenStorage = $tokenStorage;
84
    }
85
86
    public function __invoke(Request $request, $id): Response
87
    {

src/Controller/Customer/UpdateCustomerAction.php 1 location

@@ 40-54 (lines=15) @@
37
    /** @var TokenStorageInterface */
38
    private $tokenStorage;
39
40
    public function __construct(
41
        ViewHandlerInterface $viewHandler,
42
        ValidatorInterface $validator,
43
        CommandBus $bus,
44
        ValidationErrorViewFactoryInterface $validationErrorViewFactory,
45
        CustomerViewFactoryInterface $customerViewFactory,
46
        TokenStorageInterface $tokenStorage
47
    ) {
48
        $this->viewHandler = $viewHandler;
49
        $this->validator = $validator;
50
        $this->bus = $bus;
51
        $this->validationErrorViewFactory = $validationErrorViewFactory;
52
        $this->customerViewFactory = $customerViewFactory;
53
        $this->tokenStorage = $tokenStorage;
54
    }
55
56
    /**
57
     * @param Request $request