Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 11
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
CheckQueuesHealthCheckCommand
0.00% covered (danger)
0.00%
0 / 11
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 handle
0.00% covered (danger)
0.00%
0 / 11
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Console\Commands;
4
5use Illuminate\Console\Command;
6use Illuminate\Support\Facades\Log;
7use Carbon\Carbon;
8
9class CheckQueuesHealthCheckCommand extends Command
10{
11    /**
12     * The name and signature of the console command.
13     *
14     * @var string
15     */
16    protected $signature = 'app:check-queues-health-check-command';
17
18    /**
19     * The console command description.
20     *
21     * @var string
22     */
23    protected $description = 'Command description';
24
25    /**
26     * Execute the console command.
27     */
28    public function handle()
29    {
30        $time = Carbon::now()->toDateTimeString();
31        Log::info('Checking queues health check command - info', [
32            'tag' => 'HealthCheck',
33            'identifier' => 'CheckQueuesHealthCheckCommand::handle',
34            'time' => 'When: ' . $time,
35        ]);
36        Log::error('Checking queues health check command - error', [
37            'tag' => 'HealthCheck',
38            'identifier' => 'CheckQueuesHealthCheckCommand::handle',
39            'time' => 'When: ' . $time,
40        ]);
41    }
42}