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.

NoRevocationAvailableExtension::_fromDER()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Sop\X509\Certificate\Extension;
6
7
use Sop\ASN1\Element;
8
use Sop\ASN1\Type\Primitive\NullType;
9
10
/**
11
 * Implements 'No Revocation Available' certificate extension.
12
 *
13
 * @see https://tools.ietf.org/html/rfc5755#section-4.3.6
14
 */
15
class NoRevocationAvailableExtension extends Extension
16
{
17
    /**
18
     * Constructor.
19
     *
20
     * @param bool $critical
21
     */
22 4
    public function __construct(bool $critical)
23
    {
24 4
        parent::__construct(self::OID_NO_REV_AVAIL, $critical);
25 4
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30 3
    protected static function _fromDER(string $data, bool $critical): Extension
31
    {
32 3
        NullType::fromDER($data);
33 3
        return new self($critical);
34
    }
35
36
    /**
37
     * {@inheritdoc}
38
     */
39 4
    protected function _valueASN1(): Element
40
    {
41 4
        return new NullType();
42
    }
43
}
44