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.

Factory::getClassMap()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Emarref\Jwt\HeaderParameter;
4
5
use Emarref\Jwt\FactoryTrait;
6
7
/**
8
 * @method ParameterInterface get(string $name)
9
 */
10
class Factory
11
{
12
    use FactoryTrait;
13
14
    /**
15
     * @var string
16
     */
17
    private static $customParameterClass = 'Emarref\Jwt\HeaderParameter\Custom';
18
19
    /**
20
     * @var array
21
     */
22
    private static $classMap = [
23
        Algorithm::NAME                       => 'Emarref\Jwt\HeaderParameter\Algorithm',
24
        ContentType::NAME                     => 'Emarref\Jwt\HeaderParameter\ContentType',
25
        Critical::NAME                        => 'Emarref\Jwt\HeaderParameter\Critical',
26
        JsonWebKey::NAME                      => 'Emarref\Jwt\HeaderParameter\JsonWebKey',
27
        JwkSetUrl::NAME                       => 'Emarref\Jwt\HeaderParameter\JwkSetUrl',
28
        KeyId::NAME                           => 'Emarref\Jwt\HeaderParameter\KeyId',
29
        Type::NAME                            => 'Emarref\Jwt\HeaderParameter\Type',
30
        X509CertificateChain::NAME            => 'Emarref\Jwt\HeaderParameter\X509CertificateChain',
31
        X509CertificateSha1Thumbprint::NAME   => 'Emarref\Jwt\HeaderParameter\X509CertificateSha1Thumbprint',
32
        X509CertificateSha256Thumbprint::NAME => 'Emarref\Jwt\HeaderParameter\X509CertificateSha256Thumbprint',
33
        X509Url::NAME                         => 'Emarref\Jwt\HeaderParameter\X509Url',
34
    ];
35
36
    /**
37
     * @return array
38
     */
39
    protected function getClassMap()
40
    {
41
        return self::$classMap;
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    protected function getDefaultClass()
48
    {
49
        return self::$customParameterClass;
50
    }
51
}
52