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 ( ea09f8...f51f95 )
by Andreas
03:33
created

AbstractAbandoned::initPage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 4
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 7
rs 10
1
<?php
2
declare(strict_types=1);
3
/**
4
 */
5
6
namespace CommerceLeague\ActiveCampaign\Controller\Adminhtml;
7
8
use Magento\Backend\App\Action;
9
use Magento\Backend\Model\View\Result\Page as ResultPageModel;
10
use Magento\Framework\View\Result\Page as ResultPage;
11
12
/**
13
 * Class AbstractAbandoned
14
 */
15
abstract class AbstractAbandoned extends Action
16
{
17
    const ADMIN_RESOURCE = 'CommerceLeague_ActiveCampaign::activecampaign_abandoned';
18
19
    /**
20
     * @param ResultPage|ResultPageModel $resultPage
21
     * @return ResultPage
22
     */
23
    protected function initPage(ResultPage $resultPage): ResultPage
24
    {
25
        $resultPage->setActiveMenu('CommerceLeague_ActiveCampaign::activecampaign_abandoned')
0 ignored issues
show
introduced by
The method setActiveMenu() does not exist on Magento\Framework\View\Result\Page. Are you sure you never get this type here, but always one of the subclasses? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

25
        $resultPage->/** @scrutinizer ignore-call */ 
26
                     setActiveMenu('CommerceLeague_ActiveCampaign::activecampaign_abandoned')
Loading history...
26
            ->addBreadcrumb(__('ActiveCampaign'), __('ActiveCampaign'))
27
            ->addBreadcrumb(__('Abandoned Carts'), __('Abandoned Carts'));
28
29
        return $resultPage;
30
    }
31
}
32