Passed
Push — master ( ada559...ce303d )
by Alec
03:02
created

Symbol   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

3 Methods

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