UnUseCommand::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Rawilk\LaravelModules\Commands\Other;
4
5
use Illuminate\Console\Command;
6
7
class UnUseCommand extends Command
8
{
9
    /** @var string */
10
    protected $signature = 'module:unuse';
11
12
    /** @var string */
13
    protected $description = 'Forget the used module in the cli session from module:use.';
14
15
    public function handle(): void
16
    {
17
        $this->laravel['modules']->forgetUsed();
18
19
        $this->info('Previous module used is forgotten.');
20
    }
21
}
22