Passed
Pull Request — master (#33)
by Stephen
14:35
created

CleanDevTrackingCommand::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Sfneal\Tracking\Console;
4
5
use Illuminate\Console\Command;
6
use Sfneal\Tracking\Jobs\CleanDevTrackingJob;
7
8
class CleanDevTrackingCommand extends Command
9
{
10
    /**
11
     * The name and signature of the console command.
12
     *
13
     * @var string
14
     */
15
    protected $signature = 'tracking:clean-dev';
16
17
    /**
18
     * The console command description.
19
     *
20
     * @var string
21
     */
22
    protected $description = 'Removing tracking data that was created in a development environment';
23
24
    /**
25
     * Execute the console command.
26
     *
27
     * @return void
28
     */
29
    public function handle(): void
30
    {
31
        // Dispatch the cleaning job
32
        (new CleanDevTrackingJob())->handle();
33
    }
34
}
35