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.

Links   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
1
<?php  namespace Rossedman\Teamwork;
2
3
use Rossedman\Teamwork\Traits\RestfulTrait;
4
5
class Links extends AbstractObject {
6
7
    use RestfulTrait;
8
9
    protected $wrapper  = 'link';
10
11
    protected $endpoint = 'links';
12
13
    /**
14
     * Create Message
15
     * POST /projects/{project_id}/links.json
16
     *
17
     * The RestfulTrait must be overwritten because messages
18
     * require a project to be associated with.
19
     *
20
     * $teamwork->message($projectID)->create([$data]);
21
     *
22
     * @retun mixed
23
     */
24
    public function create($data)
25
    {
26
        return $this->client->post("projects/$this->id/links", [$this->wrapper => $data])->response();
27
    }
28
}