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.

AuthType::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 4
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
crap 2
1
<?php
2
namespace Solvire\API\JSONSchema;
3
4
/**
5
 * Probably not the best way to deal with this
6
 * But this represents the auth type.
7
 *
8
 *
9
 * @author solvire <[email protected]>
10
 * @package JSONSchema
11
 * @namespace Solvire\API\JSONSchema
12
 */
13
class AuthType
14
{
15
16
    protected $scopes = null;
17
18
    /**
19
     *
20
     * @param string $name            
21
     * @param array $scopes            
22
     */
23
    public function __construct(string $name, array $scopes)
0 ignored issues
show
Unused Code introduced by
The parameter $name is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
24
    {
25
        // TODO need to validate the scopes a little, but for now leave them unlinked
26
        $this->scopes = $scopes;
27
    }
28
}
29