Passed
Pull Request — master (#61)
by Dmitriy
12:24
created

IndexController::toolbar()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 12
c 2
b 0
f 0
dl 0
loc 17
ccs 0
cts 14
cp 0
rs 9.8666
cc 1
nc 1
nop 2
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Yii\Debug\Viewer;
6
7
use Psr\Http\Message\ResponseInterface;
8
use Yiisoft\Yii\View\ViewRenderer;
0 ignored issues
show
Bug introduced by
The type Yiisoft\Yii\View\ViewRenderer 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...
9
10
final class IndexController
11
{
12
    public function index(ViewRenderer $viewRenderer): ResponseInterface
13
    {
14
        return $viewRenderer
15
            ->withLayout(null)
16
            ->withViewPath('@vendor/yiisoft/yii-debug-viewer/resources/views')
17
            ->renderPartial('debug.php');
18
    }
19
}
20