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.

Auth   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 13
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A addAuthType() 0 4 1
1
<?php
2
namespace Solvire\API\JSONSchema;
3
4
/**
5
 * Represents the list of Auth types that can be presented by this schema.
6
 *
7
 * The Auth itself should have the scopes or their reference
8
 *
9
 * @author solvire <[email protected]>
10
 * @package JSONSchema
11
 * @namespace Solvire\API\JSONSchema
12
 */
13
class Auth
14
{
15
16
    protected $authCollection = null;
17
18
    public function __construct()
19
    {}
20
21
    public function addAuthType(AuthType $auth)
22
    {
23
        $this->authCollection[$auth] = $auth;
24
    }
25
}