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

CircleSpinner::getSymbols()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 7
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A CircleSpinner::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 CircleSpinner extends Spinner
11
{
12
    protected const INTERVAL = 0.17;
13
    protected const SYMBOLS = SpinnerSymbols::CIRCLES;
14
15 1
    protected function getStyles(): array
16
    {
17
        return [
18 1
            Styling::COLOR256_SPINNER_STYLES => SpinnerStyles::C256_YELLOW_WHITE,
19 1
            Styling::COLOR_SPINNER_STYLES => SpinnerStyles::C_LIGHT_YELLOW,
20
        ];
21
    }
22
}
23