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.
Completed
Pull Request — master (#12)
by
unknown
04:42
created

MedicalEndpoint   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A buildListUrl() 0 6 1
A buildSpecificEntryUrl() 0 7 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 MedicalEndpoint 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
        return $this->buildUrlParts(array(
36
            $this->type,
37
            $id,
38
        ));
39
    }
40
41
    /**
42
     * {@inheritDoc}
43
     */
44
    public function buildRecentUrl()
45
    {
46
        throw new UnsupportedEndpointMethodException("This endpoint does not support recent entries");
47
    }
48
}
49