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.

AbstractContact   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 6
c 1
b 0
f 1
dl 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A initPage() 0 7 1
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 AbstractContact
14
 */
15
abstract class AbstractContact extends Action
16
{
17
    const ADMIN_RESOURCE = 'CommerceLeague_ActiveCampaign::activecampaign_contact';
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_contact')
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_contact')
Loading history...
26
            ->addBreadcrumb(__('ActiveCampaign'), __('ActiveCampaign'))
27
            ->addBreadcrumb(__('Contacts'), __('Contacts'));
28
29
        return $resultPage;
30
    }
31
}
32