Completed
Push — master ( b55014...d2ffcb )
by Robin
03:16
created

LaravelJobHandlerClearLogsCommand::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Famdirksen\LaravelJobHandler\Console\Commands;
4
5
use Famdirksen\LaravelJobHandler\Http\Controllers\CrawlController;
6
use Famdirksen\LaravelJobHandler\Http\Controllers\CrawlLogController;
7
use Illuminate\Console\Command;
8
9
class LaravelJobHandlerClearLogsCommand extends Command
10
{
11
    /**
12
     * The name and signature of the console command.
13
     *
14
     * @var string
15
     */
16
    protected $signature = 'ljh:clear_logs';
17
18
    /**
19
     * The console command description.
20
     *
21
     * @var string
22
     */
23
    protected $description = 'Clear all the logs';
24
25
    /**
26
     * Create a new command instance.
27
     *
28
     * @return void
29
     */
30
    public function __construct()
31
    {
32
        parent::__construct();
33
    }
34
35
    /**
36
     * Execute the console command.
37
     *
38
     * @return mixed
39
     */
40
    public function handle()
41
    {
42
        $clc = new CrawlLogController();
43
        $clc->clearAllLogs();
44
    }
45
}
46