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.

SimpleEndpoint   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A buildListUrl() 0 6 1
A buildSpecificEntryUrl() 0 4 1
A buildRecentUrl() 0 4 1
1
<?php
2
3
namespace Choccybiccy\HumanApi\Endpoint;
4
5
use Choccybiccy\HumanApi\Endpoint;
6
use Choccybiccy\HumanApi\Exception\UnsupportedEndpointMethodException;
7
8
/**
9
 * Class SimpleEndpoint
10
 * @package Choccybiccy\HumanApi\Endpoint
11
 */
12
abstract class SimpleEndpoint extends Endpoint
13
{
14
15
    /**
16
     * @var bool
17
     */
18
    protected $listReturnsArray = false;
19
20
    /**
21
     * {@inheritDoc}
22
     */
23
    protected function buildListUrl()
24
    {
25
        return $this->buildUrlParts(array(
26
            $this->type,
27
        ));
28
    }
29
30
    /**
31
     * {@inheritDoc}
32
     */
33
    protected function buildSpecificEntryUrl($id)
34
    {
35
        throw new UnsupportedEndpointMethodException("This endpoint does not support specific entries");
36
    }
37
38
    /**
39
     * {@inheritDoc}
40
     */
41
    public function buildRecentUrl()
42
    {
43
        throw new UnsupportedEndpointMethodException("This endpoint does not support recent entries");
44
    }
45
}
46