Passed
Pull Request — main (#84)
by Andrey
49:37 queued 34:36
created

Uninstall   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A processor() 0 5 1
1
<?php
2
3
namespace Helldar\LaravelLangPublisher\Console;
4
5
use Helldar\LaravelLangPublisher\Contracts\Processor as ProcessorContract;
6
use Helldar\LaravelLangPublisher\Services\Processors\Uninstall as Processor;
7
use Helldar\LaravelLangPublisher\Support\Actions\Uninstall as Action;
8
9
final class Uninstall extends BaseCommand
10
{
11
    protected $signature = 'lang:uninstall'
12
    . ' {locales?* : Space-separated list of, eg: de tk it}';
13
14
    protected $description = 'Uninstall localizations.';
15
16
    protected $action = Action::class;
17
18
    protected function processor(): ProcessorContract
19
    {
20
        $this->log('Getting the processor: ' . Processor::class);
21
22
        return Processor::make();
23
    }
24
}
25