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/BillingAddress.php 1 location

@@ 152-158 (lines=7) @@
149
    }
150
151
152
    public function nextAction()
153
    {
154
        $this->testCase->byXpath($this->theme->getBillingContinueButtonXpath())->click();
155
156
        $this->webdriver->wait()->until(WebDriverExpectedCondition::not(WebDriverExpectedCondition::visibilityOf($this->webdriver->byXpath($this->theme->getBillingContinueCompletedXpath()))));
157
        return true;
158
    }
159
}

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

@@ 128-137 (lines=10) @@
125
        return true;
126
    }
127
128
    public function nextAction()
129
    {
130
        if ($this->bypassNextStep) {
131
            return true;
132
        }
133
        $this->testCase->byXpath($this->theme->getShippingContinueButtonXpath())->click();
134
135
        $this->webdriver->wait()->until(WebDriverExpectedCondition::not(WebDriverExpectedCondition::visibilityOf($this->webdriver->byXpath($this->theme->getShippingContinueCompletedXpath()))));
136
        return true;
137
    }
138
}