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.

Authenticate   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 3
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A authenticate() 0 4 1
1
<?php
2
3
namespace Ciromattia\Teamwork;
4
5
class Authenticate extends TeamworkObject
6
{
7
    protected $url = "https://authenticate.teamwork.com/authenticate.json";
8
9
    /**
10
     * Authenticate Details
11
     *
12
     * @link https://developer.teamwork.com/account#the_'authenti
13
     * @return mixed
14
     */
15
    public function authenticate()
0 ignored issues
show
Coding Style Best Practice introduced by
Please use __construct() instead of a PHP4-style constructor that is named after the class.
Loading history...
16
    {
17
        return $this->client->get($this->url)->response();
18
    }
19
}