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

Kernel::commands()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
nc 1
nop 0
dl 0
loc 5
c 0
b 0
f 0
cc 1
rs 10
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