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.
Test Failed
Push — 2.0 ( f54447...14ab12 )
by Nico
11:00
created

Billing::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
namespace Datatrics\API\Modules;
3
4
use Datatrics\API\Client;
5
6
class Billing extends Base
7
{
8
    /**
9
     * Private constructor so only the client can create this
10
     * @param Client $client
11
     */
12
    public function __construct(Client $client)
13
    {
14
        parent::__construct($client);
15
        $this->SetUrl("/project/" . $this->GetClient()->GetProjectId() . "/billing");
16
    }
17
18
    /**
19
     * Get the billing details
20
     * @param object Containing query arguments
21
     * @return object Result of the request
22
     */
23
    public function Get()
24
    {
25
        return $this->getClient()->Get($this->GetUrl());
26
    }
27
28
    /**
29
     * Update the billing details.
30
     * @param object Containing all values of the apikey
31
     * @return object Result of the request
32
     */
33
    public function Update($billing)
34
    {
35
        return $this->getClient()->Post($this->GetUrl(), $billing);
36
    }
37
}
38