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.
Completed
Push — master ( d80bec...ce7c33 )
by Andreas
03:54
created

Index::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 3
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 8
rs 10
1
<?php
2
declare(strict_types=1);
3
/**
4
 */
5
6
namespace CommerceLeague\ActiveCampaign\Controller\Adminhtml\Order;
7
8
use CommerceLeague\ActiveCampaign\Controller\Adminhtml\AbstractOrder;
9
use Magento\Backend\App\Action;
10
use Magento\Framework\App\Action\HttpGetActionInterface;
11
use Magento\Framework\View\Result\Page as ResultPage;
12
use Magento\Framework\View\Result\PageFactory as ResultPageFactory;
13
14
class Index extends AbstractOrder implements HttpGetActionInterface
15
{
16
    /**
17
     * @var ResultPageFactory
18
     */
19
    protected $resultPageFactory;
20
21
    /**
22
     * @param Action\Context $context
23
     * @param ResultPageFactory $resultPageFactory
24
     */
25
    public function __construct(
26
        Action\Context $context,
27
        ResultPageFactory $resultPageFactory
28
    ) {
29
        $this->resultPageFactory = $resultPageFactory;
30
        parent::__construct($context);
31
    }
32
33
    /**
34
     * @inheritDoc
35
     */
36
    public function execute()
37
    {
38
        /** @var ResultPage $resultPage */
39
        $resultPage = $this->resultPageFactory->create();
40
41
        $this->initPage($resultPage)->getConfig()->getTitle()->prepend(__('ActiveCampaign Orders'));
42
43
        return $resultPage;
44
    }
45
}
46