InstallCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 39
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A handle() 0 3 1
A initDatabase() 0 3 1
1
<?php
2
3
namespace TopviewDigital\TranslationHelper\Console;
4
5
use Illuminate\Console\Command;
6
7
class InstallCommand extends Command
8
{
9
    /**
10
     * The console command name.
11
     *
12
     * @var string
13
     */
14
    protected $signature = 'trans-helper:install';
15
    /**
16
     * The console command description.
17
     *
18
     * @var string
19
     */
20
    protected $description = 'Install the translation helper tables accoding to config';
21
    /**
22
     * Install directory.
23
     *
24
     * @var string
25
     */
26
    protected $directory = '';
27
28
    /**
29
     * Execute the console command.
30
     *
31
     * @return void
32
     */
33
    public function handle()
34
    {
35
        $this->initDatabase();
36
    }
37
38
    /**
39
     * Create tables and seed it.
40
     *
41
     * @return void
42
     */
43
    public function initDatabase()
44
    {
45
        $this->call('migrate');
46
    }
47
}
48