Passed
Push — master ( 25cbd8...3d7e23 )
by Mauro
02:02
created

Router   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 3
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 1 1
1
<?php
2
3
namespace SimpleDIC\Dummy;
4
5
class Router
6
{
7
    public function __construct($route, $name) {
0 ignored issues
show
Unused Code introduced by
The parameter $name 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($route, /** @scrutinizer ignore-unused */ $name) {

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...
Unused Code introduced by
The parameter $route 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 */ $route, $name) {

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