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

Update::hasForce()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
ccs 0
cts 0
cp 0
cc 1
nc 1
nop 0
crap 2
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