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.

PublicClaim::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
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\Claim;
4
5
/**
6
 * Public Claim
7
 *
8
 * Claim Names can be defined at will by those using JWTs. However, in order to prevent collisions, any new Claim Name
9
 * should either be registered in the IANA JSON Web Token Claims registry defined in Section 10.1 or be a Public Name: a
10
 * value that contains a Collision-Resistant Name. In each case, the definer of the name or value needs to take
11
 * reasonable precautions to make sure they are in control of the part of the namespace they use to define the Claim
12
 * Name.
13
 */
14 View Code Duplication
class PublicClaim extends AbstractClaim
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
15
{
16
    /**
17
     * @var string
18
     */
19
    private $name;
20
21
    /**
22
     * @param string $name
23
     * @param mixed $value
24
     */
25
    public function __construct($name = null, $value = null)
26
    {
27
        parent::__construct($value);
28
29
        $this->setName($name);
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function getName()
36
    {
37
        return $this->name;
38
    }
39
40
    /**
41
     * @param string $name
42
     */
43
    public function setName($name)
44
    {
45
        $this->name = $name;
46
    }
47
} 
48