Symbol::delete()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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