RefreshCommand::call()   A
last analyzed

Complexity

Conditions 3
Paths 2

Size

Total Lines 10
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 3
eloc 4
nc 2
nop 2
1
<?php namespace Codengine\CustomMigrations\Commands;
2
3
use Codengine\CustomMigrations\BatchMigrationTrait;
4
5
class RefreshCommand extends \Illuminate\Database\Console\Migrations\RefreshCommand {
6
	use BatchMigrationTrait;
7
8
	public function call($command, array $arguments = array())
9
	{
10
		if($command === 'migrate' || $command === 'migrate:reset')
11
		{
12
			$arguments['--type'] = $this->input->getOption('type');
13
14
		}
15
16
		return parent::call($command, $arguments);
17
	}
18
}