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.

Company   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A people() 0 4 1
A projects() 0 4 1
1
<?php  namespace Rossedman\Teamwork;
2
3
use Rossedman\Teamwork\Traits\RestfulTrait;
4
5
class Company extends AbstractObject {
6
7
    use RestfulTrait;
8
9
    protected $wrapper  = 'company';
10
11
    protected $endpoint = 'companies';
12
13
    /**
14
     * Get People Associated With Company
15
     * GET /companies/{company_id}/people.json
16
     *
17
     * @link http://developer.teamwork.com/people#get_people_(withi
18
     *
19
     * @return mixed
20
     */
21
    public function people()
22
    {
23
        return $this->client->get("$this->endpoint/$this->id/people")->response();
24
    }
25
    
26
    /**
27
     * Get Projects Associated With Company
28
     * GET /companies/{company_id}/projects.json
29
     *
30
     * @link http://developer.teamwork.com/projectsapi#retrieve_projects
31
     *
32
     * @return mixed
33
     */
34
    public function projects()
35
    {
36
        return $this->client->get("$this->endpoint/$this->id/projects")->response();
37
    }    
38
}