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
Push — master ( 5d4e73...25e621 )
by Niels
03:58
created

Gateways::show()   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 1
1
<?php namespace Ntholenaar\MultiSafepayClient\Api;
2
3
class Gateways extends AbstractApi
4
{
5
    /**
6
     * Get all gateways.
7
     *
8
     * @param string|null $country
9
     * @param string|null $currency
10
     * @param int|null    $amount
11
     * @return array
12
     */
13
    public function all($country = null, $currency = null, $amount = null)
14
    {
15
        $attributes = array_filter(
16
            compact('country', 'currency', 'amount')
17
        );
18
19
        return $this->get('/gateways', $attributes);
20
    }
21
22
    /**
23
     * Show gateway.
24
     *
25
     * @param $identifier
26
     * @return Object|null
27
     */
28
    public function show($identifier)
29
    {
30
        return $this->get('/gateways/' . rawurlencode($identifier));
31
    }
32
}
33