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.

Activity   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A latest() 0 6 1
A delete() 0 4 1
1
<?php  namespace Rossedman\Teamwork;
2
3
class Activity extends AbstractObject {
4
5
    /**
6
     * Latest Activity
7
     * GET /latestActivity.json
8
     *
9
     * @link http://developer.teamwork.com/activity#options
10
     *
11
     * @params $args  [ maxItems | onlyStarred ]
12
     *
13
     * @return mixed
14
     */
15
    public function latest($args = null)
16
    {
17
        $this->areArgumentsValid($args, ['maxItems', 'onlyStarred']);
18
19
        return $this->client->get('latestActivity', $args)->response();
20
    }
21
22
    /**
23
     * Delete Activity
24
     * DELETE /activity/{$id}.json
25
     *
26
     * @link http://developer.teamwork.com/activity#delete_an_activit
27
     *
28
     * @return mixed
29
     */
30
    public function delete()
31
    {
32
        return $this->client->delete("activity/$this->id")->response();
33
    }
34
35
}