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
Pull Request — master (#35)
by VEBER
01:56
created

InformationNode   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 22
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A retrieveNodeInformation() 0 4 1
A retrieveNodeStatus() 0 4 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