Passed
Push — master ( 2e8710...63620a )
by Alec
03:04
created

CircleSpinner   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 13
dl 0
loc 22
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSymbols() 0 11 1
A getStyles() 0 5 1
1
<?php declare(strict_types=1);
2
3
namespace AlecRabbit\Spinner;
4
5
use AlecRabbit\ConsoleColour\Contracts\Styles;
6
use AlecRabbit\Spinner\Core\AbstractSpinner;
7
use AlecRabbit\Spinner\Core\Styling;
8
9
class CircleSpinner extends AbstractSpinner
10
{
11
    /** {@inheritDoc} */
12 1
    protected function getSymbols(): array
13
    {
14
        return [
15 1
            '◐',
16
            '◐',
17
            '◓',
18
            '◓',
19
            '◑',
20
            '◑',
21
            '◒',
22
            '◒',
23
        ];
24
    }
25
26 1
    protected function getStyles(): array
27
    {
28
        return [
29 1
            Styling::COLOR256_SPINNER_STYLES => [226, 227, 228, 229, 230, 231, 230, 229, 228, 227, 226],
30 1
            Styling::COLOR_SPINNER_STYLES => [Styles::LIGHT_YELLOW],
31
        ];
32
    }
33
34
}
35