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
Push — master ( 7f1d39...078202 )
by Freek
03:49 queued 02:41
created

ConsoleOutput   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 0
dl 0
loc 19
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Spatie\UptimeMonitor\Helpers;
4
5
use Illuminate\Console\Command;
6
7
class ConsoleOutput
8
{
9
    public static Command $runningCommand;
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected T_STRING, expecting T_FUNCTION or T_CONST
Loading history...
10
11
    public function setOutput(Command $runningCommand)
12
    {
13
        static::$runningCommand = $runningCommand;
14
    }
15
16
    public static function __callStatic(string $method, $arguments)
17
    {
18
        if (! static::$runningCommand) {
19
            return;
20
        }
21
22
        static::$runningCommand->$method(...$arguments);
23
    }
24
}
25