Passed
Push — dev ( 0f4afd...29c427 )
by Janko
25:18 queued 14:48
created

provideDataForMap()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 1
b 1
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Stu\Lib\Map\VisualPanel\Layer\DataProvider\Spacecraftcount;
6
7
use Override;
0 ignored issues
show
Bug introduced by
The type Override was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use Stu\Lib\Map\VisualPanel\PanelBoundaries;
9
10
final class GeneralSpacecraftCountDataProvider extends AbstractShipcountDataProvider
11
{
12 1
    #[Override]
13
    protected function provideDataForMap(PanelBoundaries $boundaries): array
14
    {
15 1
        return $this->mapRepository->getSpacecraftCountLayerData($boundaries, $this->createResultSetMapping());
16
    }
17
18 3
    #[Override]
19
    protected function provideDataForSystemMap(PanelBoundaries $boundaries): array
20
    {
21 3
        return $this->starSystemMapRepository->getSpacecraftCountLayerData($boundaries, $this->createResultSetMapping());
22
    }
23
}
24