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.

CheckoutStart   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 2
dl 0
loc 35
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A navigateTo() 0 6 1
A execute() 0 5 1
A nextAction() 0 4 1
1
<?php
2
3
namespace Magium\Magento\Navigators\Checkout;
4
5
use Magium\Actions\WaitForPageLoaded;
6
use Magium\Magento\AbstractMagentoTestCase;
7
use Magium\Magento\Actions\Checkout\Steps\StepInterface;
8
use Magium\Magento\Themes\AbstractThemeConfiguration;
9
use Magium\Navigators\InstructionNavigator;
10
use Magium\Navigators\StaticNavigatorInterface;
11
use Magium\WebDriver\WebDriver;
12
13
class CheckoutStart implements StepInterface, StaticNavigatorInterface
14
{
15
    const NAVIGATOR = 'Checkout\CheckoutStart';
16
17
    protected $theme;
18
    protected $instructionNavigator;
19
20
    public function __construct(
21
        AbstractThemeConfiguration $theme,
22
        InstructionNavigator $instructionNavigator
23
    )
24
    {
25
        $this->instructionNavigator = $instructionNavigator;
26
        $this->theme = $theme;
27
    }
28
29
    public function navigateTo()
30
    {
31
32
        $instructions = $this->theme->getCheckoutNavigationInstructions();
33
        $this->instructionNavigator->navigateTo($instructions);
34
    }
35
36
    public function execute()
37
    {
38
        $this->navigateTo();
39
        return true;
40
    }
41
42
    public function nextAction()
43
    {
44
        return true;
45
    }
46
47
}