Passed
Push — main ( 8a25dd...3c103b )
by TARIQ
12:48
created

Kernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 23
c 0
b 0
f 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A commands() 0 5 1
A schedule() 0 2 1
1
<?php
2
3
namespace App\Console;
4
5
use Illuminate\Console\Scheduling\Schedule;
6
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7
8
class Kernel extends ConsoleKernel
9
{
10
    /**
11
     * Define the application's command schedule.
12
     *
13
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
14
     * @return void
15
     */
16
    protected function schedule(Schedule $schedule)
17
    {
18
        // $schedule->command('inspire')->hourly();
19
    }
20
21
    /**
22
     * Register the commands for the application.
23
     *
24
     * @return void
25
     */
26
    protected function commands()
27
    {
28
        $this->load(__DIR__.'/Commands');
29
30
        require base_path('routes/console.php');
0 ignored issues
show
Bug introduced by
The function base_path was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

30
        require /** @scrutinizer ignore-call */ base_path('routes/console.php');
Loading history...
31
    }
32
}
33