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   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 16
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
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