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

Symbol::delete()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
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