Passed
Push — master ( 04a6e2...090a67 )
by Alec
01:41
created

Line::eraseToEnd()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
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 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php declare(strict_types=1);
2
3
namespace AlecRabbit\Cli\Tools;
4
5
use const AlecRabbit\ESC;
6
7
class Line
8
{
9
    /**
10
     * Clears screen
11
     *
12
     * @return string
13
     */
14
    public static function eraseToEnd(): string
15
    {
16
        return ESC . '[K';
17
    }
18
}
19