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.

Index   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 30
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A execute() 0 8 1
A __construct() 0 6 1
1
<?php
2
declare(strict_types=1);
3
/**
4
 */
5
6
namespace CommerceLeague\ActiveCampaign\Controller\Adminhtml\Abandoned;
7
8
use CommerceLeague\ActiveCampaign\Controller\Adminhtml\AbstractAbandoned;
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
/**
15
 * Class Index
16
 */
17
class Index extends AbstractAbandoned implements HttpGetActionInterface
18
{
19
    /**
20
     * @var ResultPageFactory
21
     */
22
    protected $resultPageFactory;
23
24
    /**
25
     * @param Action\Context $context
26
     * @param ResultPageFactory $resultPageFactory
27
     */
28
    public function __construct(
29
        Action\Context $context,
30
        ResultPageFactory $resultPageFactory
31
    ) {
32
        $this->resultPageFactory = $resultPageFactory;
33
        parent::__construct($context);
34
    }
35
36
    /**
37
     * @inheritDoc
38
     */
39
    public function execute()
40
    {
41
        /** @var ResultPage $resultPage */
42
        $resultPage = $this->resultPageFactory->create();
43
44
        $this->initPage($resultPage)->getConfig()->getTitle()->prepend(__('ActiveCampaign Abandoned Carts'));
45
46
        return $resultPage;
47
    }
48
}
49