Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| StartStatJobs | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | n/a |
0 / 0 |
|||
| handle | n/a |
0 / 0 |
1 | n/a |
0 / 0 |
|||||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Console\Commands; |
| 4 | |
| 5 | use App\Jobs\StartStatJobs as JobsStartStatJobs; |
| 6 | use Illuminate\Console\Command; |
| 7 | |
| 8 | /** |
| 9 | * @codeCoverageIgnore |
| 10 | */ |
| 11 | class StartStatJobs extends Command |
| 12 | { |
| 13 | /** |
| 14 | * The name and signature of the console command. |
| 15 | * |
| 16 | * @var string |
| 17 | */ |
| 18 | protected $signature = 'stats:collect'; |
| 19 | |
| 20 | /** |
| 21 | * The console command description. |
| 22 | * |
| 23 | * @var string |
| 24 | */ |
| 25 | protected $description = 'Force push the collect stats jobs into the queue (stats)'; |
| 26 | |
| 27 | /** |
| 28 | * Execute the console command. |
| 29 | * |
| 30 | * @return integer |
| 31 | */ |
| 32 | public function handle() |
| 33 | { |
| 34 | \dispatch(new JobsStartStatJobs())->afterResponse(); |
| 35 | return 0; |
| 36 | } |
| 37 | } |