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

Index::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
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