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::latest()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 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
}