Passed
Push — dev6 ( 6464e0...3707eb )
by Ron
19:50
created

GarbageCollectionRunCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
c 1
b 0
f 0
dl 0
loc 23
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A handle() 0 7 1
1
<?php
2
3
namespace App\Console\Commands;
4
5
use App\Jobs\GarbageCollectionJob;
6
use App\Models\CustomerEquipment;
7
use Exception;
8
use Illuminate\Console\Command;
9
use Illuminate\Support\Facades\Log;
10
use Illuminate\Support\Facades\Storage;
11
12
class GarbageCollectionRunCommand extends Command
13
{
14
    protected $signature   = 'garbagecollection:run';
15
    protected $description = 'Basic maintenance script to wipe temporary and deleted data';
16
17
    /**
18
     * Create a new command instance
19
     */
20
    public function __construct()
21
    {
22
        parent::__construct();
23
    }
24
25
    /**
26
     * Execute the console command
27
     */
28
    public function handle()
29
    {
30
        // new GarbageCollectionJob;
31
32
        GarbageCollectionJob::dispatch();
33
34
        return Command::SUCCESS;
35
    }
36
37
38
}
39