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
Branch php72 (a7f01e)
by Joni
04:53
created

AuthorityAccessDescription::isCAIssuersMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Sop\X509\Certificate\Extension\AccessDescription;
6
7
/**
8
 * @see https://tools.ietf.org/html/rfc5280#section-4.2.2.1
9
 */
10
class AuthorityAccessDescription extends AccessDescription
11
{
12
    /**
13
     * Access method OID's.
14
     *
15
     * @var string
16
     */
17
    const OID_METHOD_OSCP = '1.3.6.1.5.5.7.48.1';
18
    const OID_METHOD_CA_ISSUERS = '1.3.6.1.5.5.7.48.2';
19
20
    /**
21
     * Check whether access method is OSCP.
22
     *
23
     * @return bool
24
     */
25 1
    public function isOSCPMethod(): bool
26
    {
27 1
        return self::OID_METHOD_OSCP === $this->_accessMethod;
28
    }
29
30
    /**
31
     * Check whether access method is CA issuers.
32
     *
33
     * @return bool
34
     */
35 1
    public function isCAIssuersMethod(): bool
36
    {
37 1
        return self::OID_METHOD_CA_ISSUERS === $this->_accessMethod;
38
    }
39
}
40