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
Pull Request — master (#23)
by Malcolm
04:22 queued 02:10
created

Payload::getClaims()   A

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\Token;
4
5
use Emarref\Jwt\Claim;
6
7
class Payload extends AbstractTokenBody
8
{
9
    /**
10
     * @param Claim\ClaimInterface $claim
11
     */
12
    public function setClaim(Claim\ClaimInterface $claim)
13
    {
14
        $this->propertyList->setProperty($claim);
15
    }
16
17
    /**
18
     * @param string $name
19
     * @return Claim\ClaimInterface|null
20
     */
21
    public function findClaimByName($name)
22
    {
23
        foreach ($this->propertyList as $claim) {
24
            /** @var Claim\ClaimInterface $claim */
25
            if ($claim->getName() === $name) {
26
                return $claim;
27
            }
28
        }
29
30
        return null;
31
    }
32
33
    /**
34
     * @return PropertyList
35
     */
36
    public function getClaims()
37
    {
38
        return $this->propertyList;
39
    }
40
}
41