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

GeneralSpacecraftCountDataProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 5
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
c 1
b 1
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A provideDataForMap() 0 4 1
A provideDataForSystemMap() 0 4 1
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