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   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 4
dl 0
loc 38
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A all() 0 6 1
A me() 0 4 1
A apiKeys() 0 4 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
}