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.
Passed
Push — develop ( 962010...fd1960 )
by Baptiste
02:34
created

Work::__construct()   A

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 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\LabStation\Command;
5
6
use Innmind\LabStation\Monitor;
7
use Innmind\CLI\{
8
    Command,
9
    Command\Arguments,
10
    Command\Options,
11
    Environment,
12
};
13
14
final class Work implements Command
15
{
16
    private $monitor;
17
18 8
    public function __construct(Monitor $monitor)
19
    {
20 8
        $this->monitor = $monitor;
21 8
    }
22
23 2
    public function __invoke(Environment $env, Arguments $arguments, Options $options): void
24
    {
25 2
        ($this->monitor)($env);
26 2
    }
27
28 4
    public function __toString(): string
29
    {
30 4
        return 'work';
31
    }
32
}
33