Passed
Push — master ( ca7167...276d5c )
by Fabian
06:10
created

Index   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 17
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A execute() 0 3 1
A __construct() 0 6 1
1
<?php
2
namespace Firegento\DevDashboard\Controller\Adminhtml\Index;
3
class Index extends \Magento\Backend\App\Action
0 ignored issues
show
Bug introduced by
The type Magento\Backend\App\Action was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
4
{
5
    
6
    const ADMIN_RESOURCE = 'Index';       
7
        
8
    protected $resultPageFactory;
9
    public function __construct(
10
        \Magento\Backend\App\Action\Context $context,
0 ignored issues
show
Bug introduced by
The type Magento\Backend\App\Action\Context was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
        \Magento\Framework\View\Result\PageFactory $resultPageFactory)
12
    {
13
        $this->resultPageFactory = $resultPageFactory;        
14
        parent::__construct($context);
15
    }
16
    
17
    public function execute()
18
    {
19
        return $this->resultPageFactory->create();
20
    }
21
}
22