RefreshCommand   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 1
cbo 3
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A call() 0 10 3
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
}