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 = 3-3 lines in 2 locations

lib/Magento/Extractors/Catalog/Cart/AddToCart.php 1 location

@@ 34-36 (lines=3) @@
31
32
    public function extract()
33
    {
34
        if (!$this->webDriver->elementExists($this->theme->getAddToCartXpath(), 'byXpath')) {
35
            throw new NoSuchElementException('Could not find the simple add to cart element with the Xpath: ' . $this->theme->getAddToCartXpath());
36
        };
37
38
        $elements = $this->webDriver->findElements(WebDriverBy::xpath($this->theme->getAddToCartXpath()));
39
        foreach ($elements as $element) {

lib/Magento/Actions/Cart/AddSimpleProductToCart.php 1 location

@@ 51-53 (lines=3) @@
48
    public function execute()
49
    {
50
        if ($this->requireQty || $this->addQty > 1) {
51
            if (!$this->webDriver->elementExists($this->theme->getSimpleProductQtyXpath(), WebDriver::BY_XPATH)) {
52
                throw new NoSuchElementException('Could not find the simple add to cart element with the Xpath: ' . $this->theme->getAddToCartXpath());
53
            }
54
            $element = $this->webDriver->byXpath($this->theme->getSimpleProductQtyXpath());
55
            $element->clear();
56
            $element->sendKeys($this->addQty);