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.

EmptyCallback::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LM\AuthAbstractor\Implementation;
6
7
use LM\AuthAbstractor\Model\IAuthenticationProcess;
8
use Psr\Http\Message\ResponseInterface;
9
use LM\AuthAbstractor\Model\IAuthenticationCallback;
10
use Symfony\Component\HttpFoundation\Response;
11
use Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory;
12
13
/**
14
 * This is a convenience implementation of IAuthenticationCallback for testing.
15
 * It returns an empty HTTP response.
16
 */
17
class EmptyCallback implements IAuthenticationCallback
18
{
19
    private $diactoros;
20
21
    public function __construct()
22
    {
23
        $this->diactoros = new DiactorosFactory();
24
    }
25
26
    public function handleFailedProcess(IAuthenticationProcess $authProcess): ResponseInterface
27
    {
28
        return $this->diactoros->createResponse(new Response());
29
    }
30
31
    public function handleSuccessfulProcess(IAuthenticationProcess $authProcess): ResponseInterface
32
    {
33
        return $this->diactoros->createResponse(new Response());
34
    }
35
}
36