GenerateFiles::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 6
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php namespace Rocket\Translation\Commands;
2
3
use Illuminate\Console\Command;
4
use Rocket\Translation\Support\Laravel5\Facade as I18N;
5
6
class GenerateFiles extends Command
7
{
8
    /**
9
     * The console command name.
10
     *
11
     * @var string
12
     */
13
    protected $name = 'rocket:generate_languages';
14
15
    /**
16
     * The console command description.
17
     *
18
     * @var string
19
     */
20
    protected $description = 'Generate language files';
21
22
    /**
23
     * Execute the console command.
24
     *
25
     * @return void
26
     */
27
    public function handle()
28
    {
29
        I18N::dumpCache();
30
31
        $this->info('Generated files');
32
    }
33
}
34