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.

RequestOperationTrait::getResponseFactory()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace JumpCloud\Operation;
4
5
use JumpCloud\Request\RequestInterface;
6
7
/**
8
 * Class RequestOperationTrait
9
 * @package JumpCloud\Operation
10
 */
11
trait RequestOperationTrait
12
{
13
    /**
14
     * @var RequestInterface
15
     */
16
    private $request;
17
18
    /**
19
     * @inheritDoc
20
     */
21 12
    public function getMethod()
22
    {
23 12
        return $this->request->getMethod();
24
    }
25
26
    /**
27
     * @inheritDoc
28
     */
29 12
    public function getUri()
30
    {
31 12
        return $this->request->getUri();
32
    }
33
34
    /**
35
     * @inheritDoc
36
     */
37 12
    public function getHeaders()
38
    {
39 12
        return $this->request->getHeaders();
40
    }
41
42
    /**
43
     * @inheritDoc
44
     */
45 12
    public function getBody()
46
    {
47 12
        return $this->request->getBody();
48
    }
49
50
    /**
51
     * @inheritDoc
52
     */
53 12
    public function addHeader($header, $value)
54
    {
55 12
        $this->request->addHeader($header, $value);
56 12
    }
57
58
    /**
59
     * @inheritDoc
60
     */
61 12
    public function getResponseFactory()
62
    {
63 12
        return $this->request->getResponseFactory();
64
    }
65
}
66