SetupCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 7
c 3
b 0
f 0
dl 0
loc 28
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 7 1
1
<?php
2
3
namespace Ikechukwukalu\Sanctumauthstarter\Console\Commands;
4
5
use Illuminate\Console\Command;
6
class SetupCommand extends Command
7
{
8
    /**
9
     * The name and signature of the console command.
10
     *
11
     * @var string
12
     */
13
    protected $signature = 'sas:setup';
14
15
    /**
16
     * The console command description.
17
     *
18
     * @var string
19
     */
20
    protected $description = 'Running all commands';
21
22
    /**
23
     * Execute the console command.
24
     *
25
     * @return void
26
     */
27
    public function handle()
28
    {
29
        $this->callSilently('sas:controllers');
30
        $this->callSilently('sas:routes');
31
        $this->callSilently('sas:tests');
32
33
        $this->components->info('Controllers, routes, requests, services and tests scaffolding generated successfully.');
34
    }
35
}
36