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 ( 5548a2...8e2600 )
by Freek
01:38
created

VarnishServiceProvider::register()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 10
rs 9.4285
1
<?php
2
3
namespace Spatie\Varnish;
4
5
use App\Console\Commands\FlushVarnishCache;
6
use Illuminate\Support\ServiceProvider;
7
8
class VarnishServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     */
13
    public function boot()
14
    {
15
        if ($this->app->runningInConsole()) {
16
            $this->publishes([
17
                __DIR__ . '/../config/laravel-varnish.php' => config_path('laravel-varnish.php'),
18
            ], 'config');
19
        }
20
    }
21
22
    public function register()
23
    {
24
        $this->mergeConfigFrom(__DIR__ . '/../config/laravel-uptime-monitor.php', 'laravel-uptime-monitor');
25
26
        $this->app->bind('command.monitor:check-uptime', FlushVarnishCache::class);
27
28
        $this->commands([
29
            'command.varnish:flush',
30
        ]);
31
    }
32
33
}
34