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 (#2)
by VEBER
02:12
created

Cluster::retrieveClusterStatus()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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\Api;
13
14
use Unikorp\KongAdminApi\AbstractApi;
15
16
/**
17
 * cluster
18
 *
19
 * @author VEBER Arnaud <https://github.com/VEBERArnaud>
20
 */
21
class Cluster extends AbstractApi
22
{
23
    /**
24
     * retrieve cluster status
25
     *
26
     * @return \Psr\Http\Message\ResponseInterface
27
     */
28
    public function retrieveClusterStatus()
29
    {
30
        return $this->get('/cluster');
31
    }
32
33
    /**
34
     * forcibly remove a node
35
     *
36
     * @param string $name
37
     *
38
     * @return \Psr\Http\Message\ResponseInterface
39
     */
40
    public function forciblyRemoveANode($name)
41
    {
42
        return $this->delete('/cluster', ['name' => $name]);
0 ignored issues
show
Unused Code introduced by
The call to Cluster::delete() has too many arguments starting with array('name' => $name).

This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.

In this case you can add the @ignore PhpDoc annotation to the duplicate definition and it will be ignored.

Loading history...
43
    }
44
}
45