Task_DB_Version::_execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
nc 1
cc 1
eloc 4
nop 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