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.

Memory   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 7
eloc 19
c 1
b 0
f 1
dl 0
loc 53
ccs 20
cts 20
cp 1
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A wired() 0 3 1
A swap() 0 3 1
A active() 0 3 1
A used() 0 3 1
A free() 0 3 1
A total() 0 3 1
A __construct() 0 14 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\Server\Status\Server;
5
6
use Innmind\Server\Status\Server\Memory\Bytes;
7
8
final class Memory
9
{
10
    private Bytes $total;
11
    private Bytes $wired;
12
    private Bytes $active;
13
    private Bytes $free;
14
    private Bytes $swap;
15
    private Bytes $used;
16
17 18
    public function __construct(
18
        Bytes $total,
19
        Bytes $wired,
20
        Bytes $active,
21
        Bytes $free,
22
        Bytes $swap,
23
        Bytes $used
24
    ) {
25 18
        $this->total = $total;
26 18
        $this->wired = $wired;
27 18
        $this->active = $active;
28 18
        $this->free = $free;
29 18
        $this->swap = $swap;
30 18
        $this->used = $used;
31 18
    }
32
33 3
    public function total(): Bytes
34
    {
35 3
        return $this->total;
36
    }
37
38 3
    public function wired(): Bytes
39
    {
40 3
        return $this->wired;
41
    }
42
43 3
    public function active(): Bytes
44
    {
45 3
        return $this->active;
46
    }
47
48 3
    public function free(): Bytes
49
    {
50 3
        return $this->free;
51
    }
52
53 3
    public function swap(): Bytes
54
    {
55 3
        return $this->swap;
56
    }
57
58 3
    public function used(): Bytes
59
    {
60 3
        return $this->used;
61
    }
62
}
63