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
Pull Request — master (#37)
by
unknown
01:17
created

FlushVarnishCache::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Spatie\Varnish\Commands;
4
5
use Spatie\Varnish\Varnish;
6
use Illuminate\Console\Command;
7
8
class FlushVarnishCache extends Command
9
{
10
    /**
11
     * The console command name.
12
     *
13
     * @var string
14
     */
15
    protected $signature = 'varnish:flush';
16
17
    
18
    private $varnish;
19
    
20
    /**
21
     * The console command description.
22
     *
23
     * @var string
24
     */
25
    protected $description = 'Flush the varnish cache.';
26
    
27
    public function __construct(Varnish $varnish)
28
    {
29
        $this->varnish = $varnish;
30
        
31
        parent::__construct();
32
    }
33
34
    /**
35
     * Execute the console command.
36
     *
37
     * @return mixed
38
     */
39
    public function handle()
40
    {
41
        $this->varnish->flush();
42
43
        $this->comment('The varnish cache has been flushed!');
44
    }
45
}
46