handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
ccs 0
cts 4
cp 0
crap 2
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace IproSync\Console\Commands;
4
5
use Illuminate\Console\Command;
6
use IproSync\Jobs\Bookings\RecentlyUpdatedPull;
7
8
/**
9
 * @deprecated
10
 */
11
class RecentlyUpdatedBookingsBlockoutsPullCommand extends Command
12
{
13
    protected $signature = 'iprosoftware-sync:recently-updated-bookings-blockouts:pull
14
     {--minutes_ago=60 : Last updated since.}
15
     {--queue= : Queue to dispatch job.}
16
    ';
17
18
    protected $description = 'Pull ipro recently updated bookings blockouts';
19
20
    public function handle(): int
21
    {
22
        RecentlyUpdatedPull::dispatch((int)$this->option('minutes_ago'))
23
            ->onQueue($this->option('queue'));
24
25
        return 0;
26
    }
27
}
28