RouteListCommand::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace LaravelPlus\Extension\Commands;
4
5
use Illuminate\Console\Command;
6
use Illuminate\Contracts\Foundation\Application;
7
use Illuminate\Foundation\Console\RouteListCommand as BaseCommand;
8
9
class RouteListCommand extends BaseCommand
10
{
11
    /**
12
     * The console command name.
13
     *
14
     * @var string
15
     */
16
    protected $name = 'route';
17
18
    /**
19
     * The console command description.
20
     *
21
     * @var string
22
     */
23
    protected $description = '[+] Shortcut to `route:list`';
24
25
    /**
26
     * Create a new route command instance.
27
     *
28
     * @param \Illuminate\Contracts\Foundation\Application $app
29
     */
30 2
    public function __construct(Application $app)
31
    {
32 2
        parent::__construct($app['router']);
33 2
    }
34
}
35