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 ( 853650...6daea0 )
by Gavin
06:42 queued 04:09
created

Systems   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

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

1 Method

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