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

All   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 16
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 4

3 Methods

Rating   Name   Duplication   Size   Complexity  
A checkResults() 0 3 1
A getOperator() 0 3 1
A checkResult() 0 3 2
1
<?php
2
declare(strict_types=1);
3
4
namespace Yiisoft\Data\Reader\Iterable\Processor;
5
6
7
class All extends GroupProcessor
8
{
9
10 1
    protected function checkResults(array $results): bool
11
    {
12 1
        return true;
13
    }
14
15 59
    public function getOperator(): string
16
    {
17 59
        return \Yiisoft\Data\Reader\Filter\All::getOperator();
18
    }
19
20 1
    protected function checkResult($result): ?bool
21
    {
22 1
        return !$result ? false : null;
23
    }
24
}
25