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

GarbageCollectionRunCommand::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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