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 ( c4a10f...5fd32e )
by James
01:57
created

Facade   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 40%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 22
ccs 2
cts 5
cp 0.4
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 4 1
A logout() 0 4 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 3
    protected static function getFacadeAccessor()
20
    {
21 3
        return 'pragmarx.google2fa';
22
    }
23
24
    /**
25
     * Get the registered name of the component.
26
     *
27
     * @return string
28
     */
29
    public static function logout()
30
    {
31
        (new Authenticator(request()))->logout();
32
    }
33
}
34