Kernel::schedule()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 2
rs 10
1
<?php
2
declare(strict_types=1);
3
4
5
/**
6
 * Kernel.php
7
 * Copyright (c) 2020 [email protected]
8
 *
9
 * This file is part of the Firefly III CSV importer
10
 * (https://github.com/firefly-iii/csv-importer).
11
 *
12
 * This program is free software: you can redistribute it and/or modify
13
 * it under the terms of the GNU Affero General Public License as
14
 * published by the Free Software Foundation, either version 3 of the
15
 * License, or (at your option) any later version.
16
 *
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU Affero General Public License for more details.
21
 *
22
 * You should have received a copy of the GNU Affero General Public License
23
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
24
 */
25
26
namespace App\Console;
27
28
use Illuminate\Console\Scheduling\Schedule;
29
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
30
31
/**
32
 * Class Kernel
33
 */
34
class Kernel extends ConsoleKernel
35
{
36
    /**
37
     * The Artisan commands provided by your application.
38
     *
39
     * @var array
40
     */
41
    protected $commands = [
42
        //
43
    ];
44
45
    /**
46
     * Define the application's command schedule.
47
     *
48
     * @param Schedule $schedule
49
     * @return void
50
     */
51
    protected function schedule(Schedule $schedule): void
52
    {
53
    }
54
55
    /**
56
     * Register the commands for the application.
57
     *
58
     * @return void
59
     */
60
    protected function commands(): void
61
    {
62
        $this->load(__DIR__.'/Commands');
63
64
        require base_path('routes/console.php');
65
    }
66
}
67