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 4

Importance

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