GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 7-19 lines in 3 locations

lib/Magento/Actions/Checkout/Steps/PaymentMethod.php 1 location

@@ 54-72 (lines=19) @@
51
        return true;
52
    }
53
54
    public function nextAction()
55
    {
56
        $this->webdriver->byXpath($this->theme->getPaymentMethodContinueButtonXpath())->click();
57
58
        try {
59
            $this->webdriver->wait()->until(
60
                WebDriverExpectedCondition::not(
61
                    WebDriverExpectedCondition::visibilityOf(
62
                        $this->webdriver->byXpath(
63
                            $this->theme->getPaymentMethodContinueCompleteXpath()
64
                        )
65
                    )
66
                )
67
            );
68
        } catch (StaleElementReferenceException $e) {
69
            // it is possible that the page rendered with unexpected timing which may lead to a harmless StaleElementReferenceException
70
        }
71
        return true;
72
    }
73
}

lib/Magento/Actions/Checkout/Steps/ShippingAddress.php 1 location

@@ 104-113 (lines=10) @@
101
        return true;
102
    }
103
104
    public function nextAction()
105
    {
106
        if ($this->bypassNextStep) {
107
            return true;
108
        }
109
        $this->testCase->byXpath($this->theme->getShippingContinueButtonXpath())->click();
110
111
        $this->webdriver->wait()->until(WebDriverExpectedCondition::not(WebDriverExpectedCondition::visibilityOf($this->webdriver->byXpath($this->theme->getShippingContinueCompletedXpath()))));
112
        return true;
113
    }
114
}

lib/Magento/Actions/Checkout/Steps/BillingAddress.php 1 location

@@ 131-137 (lines=7) @@
128
    }
129
130
131
    public function nextAction()
132
    {
133
        $this->testCase->byXpath($this->theme->getBillingContinueButtonXpath())->click();
134
135
        $this->webdriver->wait()->until(WebDriverExpectedCondition::not(WebDriverExpectedCondition::visibilityOf($this->webdriver->byXpath($this->theme->getBillingContinueCompletedXpath()))));
136
        return true;
137
    }
138
}