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

EpsSystemCheckHandler::handleSpacecraftTick()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 3
c 1
b 0
f 0
nc 2
nop 2
dl 0
loc 8
ccs 0
cts 3
cp 0
crap 6
rs 10
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