Passed
Push — dev ( 5b1d95...923b08 )
by Janko
23:33 queued 07:31
created

EpsSystemCheckHandler   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handleSpacecraftTick() 0 8 2
1
<?php
2
3
namespace Stu\Module\Tick\Spacecraft\Handler;
4
5
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...
6
use Stu\Lib\Information\InformationInterface;
7
use Stu\Module\Spacecraft\Lib\SpacecraftWrapperInterface;
8
use Stu\Module\Tick\Spacecraft\SpacecraftTickFinishedException;
9
10
class EpsSystemCheckHandler implements SpacecraftTickHandlerInterface
11
{
12
    #[Override]
13
    public function handleSpacecraftTick(
14
        SpacecraftWrapperInterface $wrapper,
15
        InformationInterface $information
16
    ): void {
17
18
        if ($wrapper->getEpsSystemData() === null) {
19
            throw new SpacecraftTickFinishedException();
20
        }
21
    }
22
}
23