LangUpdate   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 9
Bugs 0 Features 1
Metric Value
wmc 1
eloc 12
c 9
b 0
f 1
dl 0
loc 17
ccs 0
cts 5
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 8 1
1
<?php
2
3
namespace Helldar\LaravelLangPublisher\Console;
4
5
use Helldar\LaravelLangPublisher\Facades\Locale;
6
7
final class LangUpdate extends BaseCommand
8
{
9
    protected $signature = 'lang:update'
10
    . ' {--j|json : Update JSON files}'
11
    . ' {--jet : Update Jetstream JSON files. This is an alias for "--json" key. }'
12
    . ' {--fortify : Update Fortify JSON files. This is an alias for "--json" key. }';
13
14
    protected $description = 'Updating installed localizations.';
15
16
    public function handle()
17
    {
18
        $this->call('lang:install', [
19
            'locales'   => Locale::installed($this->wantsJson()),
20
            '--force'   => true,
21
            '--json'    => $this->wantsJson(),
22
            '--jet'     => $this->wantsJson(),
23
            '--fortify' => $this->wantsJson(),
24
        ]);
25
    }
26
}
27