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 ( 061e83...55bab3 )
by Sebastian
10s
created

Clear::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 12
rs 9.4285
cc 1
eloc 7
nc 1
nop 1
1
<?php
2
3
namespace Spatie\ResponseCache\Commands;
4
5
use Illuminate\Console\Command;
6
use Spatie\ResponseCache\ResponseCacheRepository;
7
use Spatie\ResponseCache\Events\ClearedResponseCache;
8
use Spatie\ResponseCache\Events\FlushedResponseCache;
9
use Spatie\ResponseCache\Events\ClearingResponseCache;
10
use Spatie\ResponseCache\Events\FlushingResponseCache;
11
12
class Clear extends Command
13
{
14
    protected $signature = 'responsecache:clear';
15
16
    protected $description = 'Clear the response cache';
17
18
    public function handle(ResponseCacheRepository $cache)
19
    {
20
        event(new FlushingResponseCache());
21
        event(new ClearingResponseCache());
22
23
        $cache->clear();
24
25
        event(new FlushedResponseCache());
26
        event(new ClearedResponseCache());
27
28
        $this->info('Response cache cleared!');
29
    }
30
}
31