MoipMigrateCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 36
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A fire() 0 6 1
1
<?php namespace SOSTheBlack\Moip\Commands;
2
3
use Illuminate\Console\Command;
4
5
class MoipMigrateCommand extends Command {
6
7
	/**
8
	 * The console command name.
9
	 *
10
	 * @var string
11
	 */
12
	protected $name = 'moip:migrate';
13
14
	/**
15
	 * The console command description.
16
	 *
17
	 * @var string
18
	 */
19
	protected $description = 'Running migrations of package';
20
21
	/**
22
	 * Create a new command instance.
23
	 */
24
	public function __construct()
25
	{
26
		parent::__construct();
27
	}
28
29
	/**
30
	 * Execute the console command.
31
	 *
32
	 * @return void
33
	 */
34
	public function fire()
35
	{
36
		$this->comment('running migrations sostheblack/moip');
37
		$this->call('migrate', ['--package'=> 'sostheblack/moip']);
38
		$this->comment('Migracoes executadas');	
39
	}
40
}
41