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
Push — master ( 5fd32e...bbf340 )
by James
01:52
created

Facade::logout()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace PragmaRX\Google2FALaravel;
5
6
use Illuminate\Support\Facades\Facade as IlluminateFacade;
7
use PragmaRX\Google2FALaravel\Support\Authenticator;
8
9
/**
10
 * Class Facade
11
 */
12
class Facade extends IlluminateFacade
13
{
14
    /**
15
     * Get the registered name of the component.
16
     *
17
     * @return string
18
     */
19 9
    protected static function getFacadeAccessor()
20
    {
21 9
        return 'pragmarx.google2fa';
22
    }
23
24
    /**
25
     * Get the registered name of the component.
26
     *
27
     * @return string
28
     */
29 2
    public static function logout()
30
    {
31 2
        (new Authenticator(request()))->logout();
32 2
    }
33
}
34