Passed
Push — master ( f06de2...0ad1df )
by Alexander
02:43 queued 01:20
created

Any::checkResults()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Yiisoft\Data\Reader\Iterable\Processor;
5
6
7
class Any extends GroupProcessor
8
{
9
10 1
    protected function checkResults(array $results): bool
11
    {
12 1
        return false;
13
    }
14
15 59
    public function getOperator(): string
16
    {
17 59
        return \Yiisoft\Data\Reader\Filter\Any::getOperator();
18
    }
19
20 1
    protected function checkResult($result): ?bool
21
    {
22 1
        return $result ? true : null;
23
    }
24
}
25