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

Reset   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
c 0
b 0
f 0
dl 0
loc 15
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\Reset as Processor;
7
use Helldar\LaravelLangPublisher\Support\Actions\Reset as Action;
8
9
final class Reset extends BaseCommand
10
{
11
    protected $signature = 'lang:reset'
12
    . ' {locales?* : Space-separated list of, eg: de tk it}'
13
    . ' {--f|full : Reset files without excluded keys}';
14
15
    protected $description = 'Resets installed locations.';
16
17
    protected $action = Action::class;
18
19
    protected function processor(): ProcessorContract
20
    {
21
        $this->log('Getting the processor: ' . Processor::class);
22
23
        return Processor::make()->full($this->hasFull());
24
    }
25
}
26