Clear   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 11
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
1
<?php namespace GeneaLabs\LaravelImagery\Console\Commands;
2
3
use Illuminate\Console\Command;
4
5
class Clear extends Command
6
{
7
    protected $signature = 'imagery:clear';
8
    protected $description = "Clears cache and wipes all derivative image
9
        created by Imagery for Laravel. They will be recreated upon the next
10
        request, if the originals are still available.";
11
12
    public function handle()
13
    {
14
        cache()->flush();
15
        app('filesystem')->disk('public')->deleteDirectory(config('genealabs-laravel-imagery.storage-folder'));
16
    }
17
}
18