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 — develop ( 9ca8cc...2705d1 )
by Baptiste
03:06
created

PhpFacade::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 10
c 0
b 0
f 0
ccs 6
cts 6
cp 1
rs 9.4285
cc 1
eloc 6
nc 1
nop 0
crap 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\Server\Status\Facade\LoadAverage;
5
6
use Innmind\Server\Status\{
7
    Facade\LoadAverageFacade,
8
    Server\LoadAverage
9
};
10
11
final class PhpFacade
12
{
13 3
    public function __invoke(): LoadAverage
14
    {
15 3
        $load = sys_getloadavg();
16
17 3
        return new LoadAverage(
18 3
            $load[0],
19 3
            $load[1],
20 3
            $load[2]
21
        );
22
    }
23
}
24