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 ( 709c6a...063dd9 )
by Robert
32:19 queued 28:25
created

ApiBuilder::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the "php-ipfs" package.
7
 *
8
 * (c) Robert Schönthal <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace IPFS\Api;
15
16
class ApiBuilder
17
{
18
    /**
19
     * @var ApiParser
20
     */
21
    private $parser;
22
    /**
23
     * @var ApiGenerator
24
     */
25
    private $generator;
26
27 2
    public function __construct(ApiParser $parser, ApiGenerator $generator)
28
    {
29 2
        $this->parser = $parser;
30 2
        $this->generator = $generator;
31 2
    }
32
33 1
    public function build($url = 'https://ipfs.io/docs/api/', $prefix = '#apiv0')
34
    {
35
        //parse
36 1
        $config = $this->parser->build($url, $prefix);
37
38
        //dump
39 1
        $this->generator->build($config);
40 1
    }
41
}
42