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.
Test Failed
Push — master ( 444b11...55afa9 )
by Anton
18:50 queued 16:47
created

RunException::getErrorOutput()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
/* (c) Anton Medvedev <[email protected]>
3
 *
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 */
7
8
namespace Deployer\Exception;
9
10
use Deployer\Host\Host;
11
use Symfony\Component\Process\Process;
12
13
class RunException extends Exception
14
{
15
    private $host;
16
    private $command;
17
    private $exitCode;
18
    private $output;
19
    private $errorOutput;
20
21 1
    public function __construct(
22
        Host $host,
23
        string $command,
24
        int $exitCode,
25
        string $output,
26
        string $errorOutput
27
    ) {
28 1
        $this->host = $host;
29 1
        $this->command = $command;
30 1
        $this->exitCode = $exitCode;
31 1
        $this->output = $output;
32 1
        $this->errorOutput = $errorOutput;
33
34 1
        $message = sprintf('The command "%s" failed.', $command);
35 1
        parent::__construct($message, $exitCode);
36 1
    }
37
38
    public function getHost(): Host
39
    {
40
        return $this->host;
41
    }
42
43
    public function getCommand(): string
44
    {
45
        return $this->command;
46
    }
47
48 1
    public function getExitCode(): int
49
    {
50 1
        return $this->exitCode;
51
    }
52
53 1
    public function getExitCodeText(): string
54
    {
55 1
        return Process::$exitCodes[$this->exitCode] ?? 'Unknown error';
56
    }
57
58
    public function getOutput(): string
59
    {
60
        return $this->output;
61
    }
62
63
    public function getErrorOutput(): string
64
    {
65
        return $this->errorOutput;
66
    }
67
}
68