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

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Ciromattia\Teamwork;
4
5
class Activity extends TeamworkObject
6
{
7
8
    /**
9
     * Latest Activity
10
     * GET /latestActivity.json
11
     *
12
     * @link http://developer.teamwork.com/activity#options
13
     *
14
     * @params $args  [ maxItems | onlyStarred ]
15
     *
16
     * @return mixed
17
     */
18
    public function latest($args = null)
19
    {
20
        $this->areArgumentsValid($args, ['maxItems', 'onlyStarred']);
21
22
        return $this->client->get('latestActivity', $args)->response();
23
    }
24
25
    /**
26
     * Delete Activity
27
     * DELETE /activity/{$id}.json
28
     *
29
     * @link http://developer.teamwork.com/activity#delete_an_activit
30
     *
31
     * @return mixed
32
     */
33
    public function delete()
34
    {
35
        return $this->client->delete("activity/$this->id")->response();
36
    }
37
38
}