Passed
Branch 4.9 (cb955a)
by Mikhail
01:30
created

AbstractController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 9
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 3
1
<?php
2
3
namespace controllers;
4
5
abstract class AbstractController
6
{
7
    private $config;
8
    private $terminal;
9
    private $filesystem;
10
11
    function __construct(
12
        Config              $config,
0 ignored issues
show
Bug introduced by
The type controllers\Config was not found. Did you mean Config? If so, make sure to prefix the type with \.
Loading history...
13
        Terminal            $terminal,
0 ignored issues
show
Bug introduced by
The type controllers\Terminal 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...
14
        Filesystem          $filesystem
0 ignored issues
show
Bug introduced by
The type controllers\Filesystem 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...
15
    )
16
    {
17
        $this->config               = $config;
18
        $this->terminal             = $terminal;
19
        $this->filesystem           = $filesystem;
20
    }
21
    // CRUD??
22
}
23