Code Duplication    Length = 12-13 lines in 2 locations

src/Block/Customer/Account/Edit/UseTwoFactor.php 1 location

@@ 56-67 (lines=12) @@
53
     * @param CustomerConfig   $customerConfig
54
     * @param array            $data
55
     */
56
    public function __construct(
57
        Context $context,
58
        IsUsingTwoFactor $isUsingTwoFactor,
59
        Customer $customerGetter,
60
        CustomerConfig $customerConfig,
61
        array $data = []
62
    ) {
63
        parent::__construct($context, $data);
64
        $this->isUsingTwoFactor = $isUsingTwoFactor;
65
        $this->customerGetter   = $customerGetter;
66
        $this->customerConfig = $customerConfig;
67
    }
68
69
    public function shouldBlockBeDisplayed()
70
    {

src/Controller/Customerlogin/AbstractController.php 1 location

@@ 55-67 (lines=13) @@
52
     */
53
    private $isUsingTwoFactor;
54
55
    public function __construct(
56
        Context $context,
57
        CustomerAdmin $customerAdmin,
58
        Customer $customerGetter,
59
        TwoFactorUrls $twoFactorUrls,
60
        IsUsingTwoFactor $isUsingTwoFactor
61
    ) {
62
        parent::__construct($context);
63
        $this->customerAdmin  = $customerAdmin;
64
        $this->customerGetter = $customerGetter;
65
        $this->twoFactorUrls  = $twoFactorUrls;
66
        $this->isUsingTwoFactor = $isUsingTwoFactor;
67
    }
68
69
    public function shouldActionBeRun()
70
    {