Completed
Push — master ( b76f5f...c04b55 )
by Carsten
05:54 queued 02:37
created

Densities   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 20
ccs 2
cts 4
cp 0.5
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDensities() 0 4 1
A search() 0 4 1
1
<?php
2
namespace FilmTools\Commons;
3
4
5
class Densities extends MinMaxArrayIterator implements DensitiesInterface, DensitiesProviderInterface
6
{
7
    /**
8
     * @inheritDoc
9
     * @return $this
10
     */
11 9
    public function getDensities() : DensitiesInterface
12
    {
13 9
        return $this;
14
    }
15
16
17
    /**
18
     * @inheritDoc
19
     */
20
    public function search( float $logD )
21
    {
22
        return array_search($logD, $this->getArrayCopy());
0 ignored issues
show
Bug Compatibility introduced by
The expression array_search($logD, $this->getArrayCopy()); of type false|integer|string adds the type string to the return on line 22 which is incompatible with the return type declared by the interface FilmTools\Commons\SearchableInterface::search of type integer|false.
Loading history...
23
    }
24
}
25