GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#11)
by Freek
03:46
created

Screen::clearPrompt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Spatie\PhpUnitWatcher\Screens;
4
5
use Spatie\PhpUnitWatcher\Terminal;
6
7
abstract class Screen
8
{
9
    /** @var \Spatie\PhpUnitWatcher\Terminal */
10
    protected $terminal;
11
12
    public function useTerminal(Terminal $terminal)
13
    {
14
        $this->terminal = $terminal;
15
16
        return $this;
17
    }
18
19
    public function draw()
20
    {
21
        return $this;
22
    }
23
24
    public function registerListeners()
25
    {
26
        return $this;
27
    }
28
29
    public function clear()
30
    {
31
        passthru("echo '\033\143'");
32
33
        return $this;
34
    }
35
36
    public function removeAllListeners()
37
    {
38
        $this->terminal->removeAllListeners();
39
40
        return $this;
41
    }
42
43
    public function clearPrompt()
44
    {
45
        $this->terminal->clearPrompt();
46
47
        return $this;
48
    }
49
}
50