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:03
created

MedicalEndpoint::buildSpecificEntryUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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