Passed
Push — master ( 2d89aa...dbaa53 )
by Alec
01:57
created

ClockSpinner   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 10
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getStyles() 0 5 1
1
<?php declare(strict_types=1);
2
3
namespace AlecRabbit\Spinner;
4
5
use AlecRabbit\Spinner\Contracts\SpinnerStyles;
6
use AlecRabbit\Spinner\Contracts\SpinnerSymbols;
7
use AlecRabbit\Spinner\Core\Spinner;
8
use AlecRabbit\Spinner\Core\Styling;
9
10
class ClockSpinner extends Spinner
11
{
12
    protected const ERASING_SHIFT = 2;
13
    protected const SYMBOLS = SpinnerSymbols::CLOCK;
14
15 2
    protected function getStyles(): array
16
    {
17
        return [
18 2
            Styling::COLOR256_SPINNER_STYLES => SpinnerStyles::DISABLED,
19 2
            Styling::COLOR_SPINNER_STYLES => SpinnerStyles::DISABLED,
20
        ];
21
    }
22
}
23