Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
25 | 3 | public function spin(?float $percent = null, ?string $message = null): string |
|
26 | { |
||
27 | 3 | if (!\is_float($percent)) { |
|
28 | 1 | throw new \RuntimeException('Float percentage value expected ' . typeOf($percent) . ' given.'); |
|
29 | } |
||
30 | 2 | if (null !== $message) { |
|
31 | 1 | throw new \RuntimeException('Null value expected ' . typeOf($message) . ' given.'); |
|
32 | } |
||
33 | 1 | return parent::spin($percent); |
|
34 | } |
||
51 |