Passed
Push — 10.x ( bec96d...3163fd )
by Andrey
12:10
created

Update   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
c 3
b 0
f 0
dl 0
loc 16
rs 10
ccs 4
cts 4
cp 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A targetLocales() 0 3 1
A hasForce() 0 3 1
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 1
18
declare(strict_types=1);
19 1
20
namespace Helldar\LaravelLangPublisher\Console;
21 1
22
use Helldar\LaravelLangPublisher\Facades\Helpers\Locales;
23
use Helldar\LaravelLangPublisher\Processors\Update as Processor;
24 1
25
class Update extends Base
26 1
{
27
    protected $signature = 'lang:update';
28 1
29
    protected $description = 'Updating installed localizations.';
30
31 1
    protected $processor = Processor::class;
32
33 1
    protected function targetLocales(): array
34
    {
35
        return Locales::installed();
36
    }
37
38
    protected function hasForce(): bool
39
    {
40
        return true;
41
    }
42
}
43