GenerateFiles   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 28
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 6 1
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