Failed Conditions
Push — master ( 1d20e4...3402cb )
by Marco
01:06 queued 13s
created

Thing::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Example\Library;
4
5
class Thing
6
{
7
    public function __construct(Dependency $dependency)
0 ignored issues
show
Bug introduced by
The type Example\Library\Dependency 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...
Unused Code introduced by
The parameter $dependency is not used and could be removed. ( Ignorable by Annotation )

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

7
    public function __construct(/** @scrutinizer ignore-unused */ Dependency $dependency)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
8
    {
9
    }
10
}
11