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

MoonSpinner::getSymbols()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 11
ccs 2
cts 2
cp 1
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1

1 Method

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