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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 30
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A all() 0 8 1
A show() 0 4 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