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

lib/Magento/Navigators/Cart/Cart.php 1 location

@@ 9-32 (lines=24) @@
6
use Magium\Navigators\InstructionNavigator;
7
use Magium\Navigators\StaticNavigatorInterface;
8
9
class Cart implements StaticNavigatorInterface
10
{
11
12
    const NAVIGATOR = 'Cart\Cart';
13
14
    protected $instructionNavigator;
15
    protected $theme;
16
17
    public function __construct(
18
        InstructionNavigator $instructionNavigator,
19
        AbstractThemeConfiguration $themeConfiguration
20
    )
21
    {
22
        $this->instructionNavigator = $instructionNavigator;
23
        $this->theme = $themeConfiguration;
24
    }
25
26
    public function navigateTo()
27
    {
28
        $instructions = $this->theme->getCartNavigationInstructions();
29
        $this->instructionNavigator->navigateTo($instructions);
30
    }
31
32
}

lib/Magento/Navigators/Customer/Registration.php 1 location

@@ 9-34 (lines=26) @@
6
use Magium\Navigators\InstructionNavigator;
7
use Magium\Navigators\StaticNavigatorInterface;
8
9
class Registration implements StaticNavigatorInterface
10
{
11
12
    const NAVIGATOR = 'Customer\Registration';
13
14
    protected $instructionNavigator;
15
    protected $theme;
16
17
    public function __construct(
18
        InstructionNavigator $instructionNavigator,
19
        AbstractThemeConfiguration $abstractThemeConfiguration
20
    )
21
    {
22
        $this->instructionNavigator = $instructionNavigator;
23
        $this->theme = $abstractThemeConfiguration;
24
    }
25
26
27
    public function navigateTo()
28
    {
29
        $this->instructionNavigator->navigateTo(
30
            $this->theme->getRegistrationNavigationInstructions()
31
        );
32
    }
33
34
}