Passed
Push — master ( 0c6495...580c97 )
by Alec
02:36
created

Symbol   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A replaceWithSpace() 0 3 1
A delete() 0 3 1
A insert() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace AlecRabbit\Cli\Tools;
4
5
use const AlecRabbit\CSI;
6
7
class Symbol
8
{
9 1
    public static function insert(int $count = 1): string
10
    {
11 1
        return CSI . "{$count}@";
12
    }
13
14 1
    public static function delete(int $count = 1): string
15
    {
16 1
        return CSI . "{$count}P";
17
    }
18
19 1
    public static function replaceWithSpace(int $count = 1): string
20
    {
21 1
        return CSI . "{$count}X";
22
    }
23
}
24