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

Cache   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A _construct() 0 5 1
1
<?php
2
namespace Firegento\DevDashboard\Block\Backend;
3
4
class Cache extends \Magento\Backend\Block\Cache
0 ignored issues
show
Bug introduced by
The type Magento\Backend\Block\Cache 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...
5
{
6
    /**
7
     * Class constructor
8
     *
9
     * @return void
10
     */
11
    protected function _construct()
12
    {
13
        $this->_controller = 'cache';
0 ignored issues
show
Bug Best Practice introduced by
The property _controller does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
14
        $this->_headerText = __('Cache Storage Management');
0 ignored issues
show
Bug introduced by
The function __ was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

14
        $this->_headerText = /** @scrutinizer ignore-call */ __('Cache Storage Management');
Loading history...
Bug Best Practice introduced by
The property _headerText does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
15
        \Magento\Backend\Block\Widget\Container::_construct();
0 ignored issues
show
Bug introduced by
The type Magento\Backend\Block\Widget\Container 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...
16
    }
17
}
18