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 (#20)
by
unknown
03:21
created

Charge::fraudReview()   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 0
Metric Value
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
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
Documentation introduced by
There is no parameter named $form_params.. Did you maybe mean $form_params?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.

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

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

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

Loading history...
48
     *
49
     * @return mixed
50
     */
51
    public function refund($id, array $form_params = [])
52
    {
53
        return $this->post($id, 'refund', $form_params);
54
    }
55
56
    /**
57
     * Make a POST request to charges/{id}/fraud_review.
58
     *
59
     * @param int   $id The resource's id.
60
     * @param array $form_params
61
     *
62
     * @return mixed
63
     */
64
    public function fraudReview($id, array $form_params = [])
65
    {
66
        return $this->post($id, 'fraud_review', $form_params);
67
    }
68
}
69