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

bootstrap()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 39
Code Lines 31

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 31
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 31
dl 0
loc 39
ccs 31
cts 31
cp 1
rs 9.424
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;
5
6
use Innmind\OperatingSystem\OperatingSystem;
7
use Innmind\CLI\Commands;
8
use Innmind\ProcessManager\{
9
    Manager\Parallel,
10
    Runner\SubProcess,
11
};
12
use Innmind\IPC\Process\Name;
13
use function Innmind\FileWatch\bootstrap as watch;
14
use function Innmind\IPC\bootstrap as ipc;
15
16
function bootstrap(OperatingSystem $os): Commands
17
{
18 2
    $protocol = new Protocol\Json;
19 2
    $watch = watch($os);
20 2
    $ipc = ipc($os);
21 2
    $monitor = new Name('lab-station-'.$os->process()->id());
22
23 2
    return new Commands(
24 2
        new Command\Work(
25 2
            new Monitor(
26 2
                $protocol,
27 2
                new Parallel(
28 2
                    new SubProcess($os->process())
29
                ),
30 1
                $ipc,
31 1
                $monitor,
32 2
                new Trigger\All(
33 2
                    new Trigger\Graphs(
34 2
                        $os->filesystem(),
35 2
                        $os->control()->processes(),
36 2
                        $os->status()->tmp()
37
                    ),
38 2
                    new Trigger\Profiler(
39 2
                        $os->filesystem(),
40 2
                        $os->control()->processes()
41
                    ),
42 2
                    new Trigger\Tests($os->control()->processes())
43
                ),
44 2
                new Agent\WatchSources(
45 2
                    $protocol,
46 1
                    $watch,
47 1
                    $ipc,
48 1
                    $monitor
49
                ),
50 2
                new Agent\WatchTests(
51 2
                    $protocol,
52 1
                    $watch,
53 1
                    $ipc,
54 1
                    $monitor
55
                )
56
            )
57
        )
58
    );
59
}
60