Test Failed
Push — master ( deb397...eab8d5 )
by Mr
01:40
created

ProjectionMap   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 9
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 4 1
1
<?php
2
3
namespace Daikon\Dbal\Projection;
4
5
use Daikon\DataStructures\TypedMapTrait;
6
7
final class ProjectionMap implements \IteratorAggregate, \Countable
8
{
9
    use TypedMapTrait;
10
11
    public function init(array $projections = [])
12
    {
13
        $this->init($projections, ProjectionInterface::class);
0 ignored issues
show
Unused Code introduced by
The call to ProjectionMap::init() has too many arguments starting with \Daikon\Dbal\Projection\ProjectionInterface::class.

This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.

In this case you can add the @ignore PhpDoc annotation to the duplicate definition and it will be ignored.

Loading history...
14
    }
15
}
16