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.

PeriodicEndpoint::buildSpecificEntryUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 7
Ratio 100 %

Importance

Changes 0
Metric Value
dl 7
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
3
namespace Choccybiccy\HumanApi\Endpoint;
4
5
use Choccybiccy\HumanApi\Endpoint;
6
7
/**
8
 * Class PeriodicEndpoint
9
 * @package Choccybiccy\HumanApi\Endpoint
10
 */
11 View Code Duplication
abstract class PeriodicEndpoint extends Endpoint
12
{
13
14
    /**
15
     * @var string
16
     */
17
    protected $plural = "summaries";
18
19
    /**
20
     * {@inheritDoc}
21
     */
22
    protected function buildSpecificEntryUrl($id)
23
    {
24
        return $this->buildUrlParts(array(
25
            $this->type,
26
            $id
27
        ));
28
    }
29
30
    /**
31
     * {@inheritDoc}
32
     */
33
    protected function buildListUrl()
34
    {
35
        return $this->buildUrlParts(array(
36
            $this->type,
37
        ));
38
    }
39
40
    /**
41
     * {@inheritDoc}
42
     */
43
    protected function buildRecentUrl()
44
    {
45
        return $this->buildUrlParts(array(
46
            $this->type,
47
            $this->plural,
48
        ));
49
    }
50
}
51