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

Densities::search()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
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