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.
Passed
Push — 2.0 ( 90d528...00d2e6 )
by Nico
03:49
created

Apikey::Get()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
namespace Datatrics\API\Modules;
3
4
class Apikey extends Base
5
{
6
    /**
7
     * Private constructor so only the client can create this
8
     * @param string $apikey
9
     */
10 8
    public function __construct($apikey)
11
    {
12 8
        parent::__construct($apikey, "/apikey");
13 8
    }
14
15
    /**
16
     * Get all apikeys
17
     * @param object Containing query arguments
18
     * @return object Result of the request
19
     */
20 2
    public function Get($args = array("limit" => 50))
21
    {
22 2
        return$this->request(self::HTTP_GET, "?".http_build_query($args));
23
    }
24
25
    /**
26
     * Create a new apikey
27
     * @param object Containing all values of the apikey
28
     * @return object Result of the request
29
     */
30 2
    public function Create($apikey)
31
    {
32 2
        return $this->request(self::HTTP_POST, "", $apikey);
33
    }
34
}
35