Kernel   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 3
dl 0
loc 26
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A schedule() 0 7 1
1
<?php
2
3
/*
4
 * This file is part of the Tinyissue package.
5
 *
6
 * (c) Mohamed Alsharaf <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Tinyissue\Console;
13
14
use Illuminate\Console\Scheduling\Schedule;
15
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
16
use Tinyissue\Console\Commands;
17
18
/**
19
 * Kernel is class to define the commands schedule for application cron jobs.
20
 *
21
 * @author Mohamed Alsharaf <[email protected]>
22
 */
23
class Kernel extends ConsoleKernel
24
{
25
    /**
26
     * The Artisan commands provided by your application.
27
     *
28
     * @var array
29
     */
30
    protected $commands = [
31
        Commands\SendMessages::class,
32
    ];
33
34
    /**
35
     * Define the application's command schedule.
36
     *
37
     * @param \Illuminate\Console\Scheduling\Schedule $schedule
38
     *
39
     * @return void
40
     */
41 1
    protected function schedule(Schedule $schedule)
42
    {
43
        $schedule
44 1
            ->command('tinyissue:messages')
45 1
            ->everyMinute()
46 1
            ->withoutOverlapping();
47 1
    }
48
}
49