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 (#33)
by Cees-Jan
44:41 queued 34:46
created

Hook   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A id() 0 4 1
A active() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace WyriHaximus\Travis\Resource;
5
6
use WyriHaximus\ApiClient\Resource\TransportAwareTrait;
7
8
abstract class Hook implements HookInterface
9
{
10
    use TransportAwareTrait;
11
12
    /**
13
     * @var int
14
     */
15
    protected $id;
16
17
    /**
18
     * @var bool
19
     */
20
    protected $active;
21
22
    /**
23
     * @return int
24
     */
25
    public function id() : int
26
    {
27
        return $this->id;
28
    }
29
30
    /**
31
     * @return bool
32
     */
33
    public function active() : bool
34
    {
35
        return (bool)$this->active;
36
    }
37
}
38