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 ( e97bb7...5f2eb5 )
by Pascal
10:40 queued 09:38
created

ApiHealth   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 24
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 4 1
A fake() 0 6 1
1
<?php
2
3
namespace ProtoneMedia\ApiHealth\Facades;
4
5
use Illuminate\Support\Facades\Facade;
6
use ProtoneMedia\ApiHealth\Testing\ApiHealthFake;
7
8
/**
9
 * @see \ProtoneMedia\ApiHealth\LaravelFacade
10
 */
11
class ApiHealth extends Facade
12
{
13
    /**
14
     * Get the registered name of the component.
15
     *
16
     * @return string
17
     */
18
    protected static function getFacadeAccessor()
19
    {
20
        return 'laravel-api-health';
21
    }
22
23
    /**
24
     * Replace the bound instance with a fake.
25
     *
26
     * @return \ProtoneMedia\ApiHealth\Testing\ApiHealthFake
27
     */
28
    public static function fake()
29
    {
30
        return tap(new ApiHealthFake, function ($fake) {
31
            static::swap($fake);
32
        });
33
    }
34
}
35