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 (#8)
by VEBER
01:50
created

Cluster::clusterInformation()   A

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
use Unikorp\KongAdminApi\Document\Cluster as Document;
17
18
/**
19
 * cluster
20
 *
21
 * @author VEBER Arnaud <https://github.com/VEBERArnaud>
22
 */
23
class Cluster extends AbstractNode
24
{
25
    /**
26
     * cluster information
27
     *
28
     * @return \Psr\Http\Message\ResponseInterface
29
     */
30 1
    public function clusterInformation(): ResponseInterface
31
    {
32 1
        return $this->get('/cluster');
33
    }
34
35
    /**
36
     * retrieve cluster status
37
     *
38
     * @return \Psr\Http\Message\ResponseInterface
39
     */
40 1
    public function retrieveClusterStatus(): ResponseInterface
41
    {
42 1
        return $this->get('/cluster/nodes');
43
    }
44
45
    /**
46
     * forcibly remove a node
47
     *
48
     * @param \Unikorp\KongAdminApi\Document\Cluster $document
49
     *
50
     * @return \Psr\Http\Message\ResponseInterface
51
     */
52 1
    public function forciblyRemoveANode(Document $document): ResponseInterface
53
    {
54 1
        return $this->delete('/cluster', $document);
55
    }
56
}
57