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.

EmptyChallenge::process()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
nc 1
nop 2
dl 0
loc 9
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LM\AuthAbstractor\Challenge;
6
7
use LM\AuthAbstractor\Model\IAuthenticationProcess;
8
use LM\AuthAbstractor\Model\IChallengeResponse;
9
use LM\AuthAbstractor\Implementation\ChallengeResponse;
10
use Psr\Http\Message\ServerRequestInterface;
11
12
class EmptyChallenge implements IChallenge
13
{
14
    /**
15
     * @internal
16
     */
17
    public function process(
18
        IAuthenticationProcess $authenticationProcess,
19
        ?ServerRequestInterface $httpRequest
20
    ): IChallengeResponse {
21
        return new ChallengeResponse(
22
            $authenticationProcess,
23
            null,
24
            false,
25
            true
26
        );
27
    }
28
}
29