Completed
Push — master ( 488702...18fedf )
by Stéphane
22:05
created

GenerateFiles::fire()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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