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.

Systems   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 5
dl 0
loc 22
rs 10
ccs 0
cts 9
cp 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
namespace JumpCloud\Operation;
4
5
use JumpCloud\Factory\SystemsResponseFactory;
6
use JumpCloud\Fields\NoopFields;
7
use JumpCloud\Request\Request;
8
use JumpCloud\Request\RequestInterface;
9
use JumpCloud\Request\SystemRequestInterface;
10
use JumpCloud\Response\SystemsResponse;
11
12
/**
13
 * Class Authenticate
14
 * @package JumpCloud\Operation
15
 */
16
class Systems implements RequestInterface, SystemRequestInterface
17
{
18
    use RequestOperationTrait;
19
    use FieldsOperationTrait {
20
        FieldsOperationTrait::getBody insteadof RequestOperationTrait;
21
    }
22
23
    /**
24
     * Systems constructor.
25
     */
26
    public function __construct()
27
    {
28
        $request = new Request();
29
        $request->setUri(SystemRequestInterface::ENDPOINT);
30
        $request->setMethod('POST');
31
        $request->setResponseFactory(new SystemsResponseFactory());
32
33
        $this->fields = new NoopFields();
34
35
        $this->request = $request;
36
    }
37
}
38