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

LaravelJobHandlerClearLogsCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 35
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
A __construct() 0 3 1
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