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 ( 02f07d...0e7d0b )
by Freek
01:47
created

ClearCommand::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 1
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\ClearingResponseCache;
9
10
class ClearCommand extends Command
11
{
12
    protected $signature = 'responsecache:clear';
13
14
    protected $description = 'Clear the response cache';
15
16
    public function handle(ResponseCacheRepository $cache)
17
    {
18
        event(new ClearingResponseCache());
19
20
        $cache->clear();
21
22
        event(new ClearedResponseCache());
23
24
        $this->info('Response cache cleared!');
25
    }
26
}
27