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 (#15)
by
unknown
02:40
created

Charge::refund()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Vindi;
4
5
class Charge extends Resource
6
{
7
    /**
8
     * The endpoint that will hit the API.
9
     *
10
     * @return string
11
     */
12 20
    public function endpoint()
13
    {
14 20
        return 'charges';
15
    }
16
17
    /**
18
     * Make a POST request to charges/{id}/reissue.
19
     *
20
     * @param int   $id The resource's id.
21
     * @param array $form_params
22
     *
23
     * @return mixed
24
     */
25 2
    public function reissue($id, array $form_params = [])
26
    {
27 2
        return $this->post($id, 'reissue', $form_params);
28
    }
29
30
    /**
31
     * Make a POST request to charges/{id}/charge.
32
     *
33
     * @param int   $id The resource's id.
34
     * @param array $form_params
35
     *
36
     * @return mixed
37
     */
38 2
    public function charge($id, array $form_params = [])
0 ignored issues
show
Coding Style Best Practice introduced by
Please use __construct() instead of a PHP4-style constructor that is named after the class.
Loading history...
39
    {
40 2
        return $this->post($id, 'charge', $form_params);
41
    }
42
43
    /**
44
     * Make a POST request to charges/{id}/refund.
45
     *
46
     * @param int   $id The resource's id.
47
     * @param array $form_params
0 ignored issues
show
Bug introduced by
There is no parameter named $form_params. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
48
     *
49
     * @return mixed
50
     */
51
    public function refund($id)
52
    {
53
        return $this->post($id, 'refund');
54
    }
55
}
56