Passed
Push — 10.x ( 64cb8f...6737cd )
by Andrey
02:16
created

Reset::targetLocales()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the "andrey-helldar/laravel-lang-publisher" project.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 *
9
 * @author Andrey Helldar <[email protected]>
10
 *
11
 * @copyright 2021 Andrey Helldar
12
 *
13
 * @license MIT
14
 *
15
 * @see https://github.com/andrey-helldar/laravel-lang-publisher
16
 */
17
18
declare(strict_types=1);
19
20
namespace Helldar\LaravelLangPublisher\Console;
21
22
use Helldar\LaravelLangPublisher\Processors\Reset as Processor;
23
24
class Reset extends Base
25
{
26
    protected $signature = 'lang:reset'
27
    . ' {locales?* : Space-separated list of, eg: de tk it}'
28
    . ' {--full : Delete custom keys}';
29
30
    protected $description = 'Resets installed locations.';
31
32
    protected $processor = Processor::class;
33
34 8
    protected function targetLocales(): array
35
    {
36 8
        return $this->getLocales();
37
    }
38
}
39