Task_DB_Version   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A _execute() 0 8 1
1
<?php defined('SYSPATH') OR die('No direct script access.');
2
3
/**
4
 * Get the current migration version
5
 */
6
class Task_DB_Version extends Minion_Task {
7
8
	protected function _execute(array $options)
9
	{
10
		$migrations = new Migrations(array('log' => 'Minion_CLI::write'));
11
12
		$executed_migrations = $migrations->get_executed_migrations();
13
14
		Minion_CLI::write('Current Version: '.end($executed_migrations));
15
	}
16
}
17