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   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 14
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 9 1
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