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.

People::all()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Ciromattia\Teamwork;
4
5
use Ciromattia\Teamwork\Traits\RestfulTrait;
6
7
class People extends TeamworkObject
8
{
9
    use RestfulTrait;
10
11
    protected $wrapper = 'person';
12
    protected $endpoint = 'people';
13
14
    /**
15
     * GET /people.json
16
     *
17
     * @return mixed
18
     */
19
    public function all($args = null)
20
    {
21
        $this->areArgumentsValid($args, ['page', 'pageSize', 'emailaddress']);
22
23
        return $this->client->get($this->endpoint, $args)->response();
24
    }
25
26
    /**
27
     * GET /me.json
28
     */
29
    public function me()
30
    {
31
        return $this->client->get("me")->response();
32
    }
33
34
    /**
35
     * Get All API Keys
36
     * GET /people/APIKeys.json
37
     *
38
     * @return mixed
39
     */
40
    public function apiKeys()
41
    {
42
        return $this->client->get("$this->endpoint/APIKeys")->response();
43
    }
44
}