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.

InformationNode::retrieveNodeStatus()   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 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the KongAdminApi package.
5
 *
6
 * (c) Unikorp <https://github.com/unikorp>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Unikorp\KongAdminApi\Node;
13
14
use Psr\Http\Message\ResponseInterface;
15
use Unikorp\KongAdminApi\AbstractNode;
16
17
/**
18
 * information node
19
 *
20
 * @author VEBER Arnaud <https://github.com/VEBERArnaud>
21
 */
22
class InformationNode extends AbstractNode
23
{
24
    /**
25
     * retrieve node information
26
     *
27
     * @return \Psr\Http\Message\ResponseInterface
28
     */
29 2
    public function retrieveNodeInformation(): ResponseInterface
30
    {
31 2
        return $this->get('/');
32
    }
33
34
    /**
35
     * retrieve node status
36
     *
37
     * @return \Psr\Http\Message\ResponseInterface
38
     */
39 2
    public function retrieveNodeStatus(): ResponseInterface
40
    {
41 2
        return $this->get('/status');
42
    }
43
}
44