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.

Algorithm::getName()   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
/**
6
 * "alg" (Algorithm) Header Parameter
7
 *
8
 * The "alg" (algorithm) Header Parameter identifies the cryptographic algorithm used to secure the JWS. The JWS
9
 * Signature value is not valid if the "alg" value does not represent a supported algorithm, or if there is not a key
10
 * for use with that algorithm associated with the party that digitally signed or MACed the content. "alg" values should
11
 * either be registered in the IANA JSON Web Signature and Encryption Algorithms registry defined in [JWA] or be a value
12
 * that contains a Collision-Resistant Name.  The "alg" value is a case-sensitive string containing a StringOrURI value.
13
 * This Header Parameter MUST be present and MUST be understood and processed by implementations.
14
 *
15
 * A list of defined "alg" values for this use can be found in the IANA JSON Web Signature and Encryption Algorithms
16
 * registry defined in [JWA]; the initial contents of this registry are the values defined in Section 3.1 of the JSON
17
 * Web Algorithms (JWA) [JWA] specification.
18
 */
19
class Algorithm extends AbstractParameter
20
{
21
    const NAME = 'alg';
22
23
    /**
24
     * @return string
25
     */
26
    public function getName()
27
    {
28
        return self::NAME;
29
    }
30
}
31