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 ( 2569ae...192447 )
by Joni
08:37
created

SubjectAccessDescription   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isTimeStampingMethod() 0 4 1
A isCARepositoryMethod() 0 4 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace X509\Certificate\Extension\AccessDescription;
5
6
/**
7
 *
8
 * @link https://tools.ietf.org/html/rfc5280#section-4.2.2.2
9
 */
10
class SubjectAccessDescription extends AccessDescription
11
{
12
    /**
13
     * Access method OID's.
14
     *
15
     * @var string
16
     */
17
    const OID_METHOD_TIME_STAMPING = "1.3.6.1.5.5.7.48.3";
18
    const OID_METHOD_CA_REPOSITORY = "1.3.6.1.5.5.7.48.5";
19
    
20
    /**
21
     * Check whether access method is time stamping.
22
     *
23
     * @return bool
24
     */
25 1
    public function isTimeStampingMethod(): bool
26
    {
27 1
        return self::OID_METHOD_TIME_STAMPING === $this->_accessMethod;
28
    }
29
    
30
    /**
31
     * Check whether access method is CA repository.
32
     *
33
     * @return bool
34
     */
35 1
    public function isCARepositoryMethod(): bool
36
    {
37 1
        return self::OID_METHOD_CA_REPOSITORY === $this->_accessMethod;
38
    }
39
}
40