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
Push — master ( 1089d8...8c3375 )
by Cees-Jan
06:43 queued 04:58
created

ApiClient   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%
Metric Value
wmc 4
lcom 0
cbo 2
dl 0
loc 27
ccs 0
cts 14
cp 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A repository() 0 4 1
A getRequest() 0 4 1
A fromResponse() 0 4 1
1
<?php
2
3
namespace WyriHaximus\Travis;
4
5
use Psr\Http\Message\RequestInterface;
6
use Psr\Http\Message\ResponseInterface;
7
8
class ApiClient implements EndpointInterface
9
{
10
    use ClientAwareTrait;
11
12
    /**
13
     * @param Client $client
14
     */
15
    public function __construct(Client $client)
16
    {
17
        $this->setClient($client);
18
    }
19
20
    public function repository(string $repository): Repository
21
    {
22
        return new Repository($this, $repository);
23
    }
24
25
    public function getRequest(): RequestInterface
26
    {
27
        // TODO: Implement getRequest() method.
28
    }
29
30
    public function fromResponse(ResponseInterface $response): EndpointInterface
31
    {
32
        // TODO: Implement fromResponse() method.
33
    }
34
}
35