rc5::effectively_installed()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 2
eloc 2
nc 2
nop 0
1
<?php
2
/**
3
 *
4
 * @package Quick Title Edition Extension
5
 * @copyright (c) 2015 ABDev
6
 * @copyright (c) 2015 PastisD
7
 * @copyright (c) 2015 Geolim4 <http://geolim4.com>
8
 * @copyright (c) 2015 Zoddo <[email protected]>
9
 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
10
 *
11
 */
12
13
namespace ernadoo\qte\migrations\v100;
14
15
class rc5 extends \phpbb\db\migration\migration
16
{
17
	static public function depends_on()
18
	{
19
		return array('\ernadoo\qte\migrations\v100\rc4');
20
	}
21
22
	public function effectively_installed()
23
	{
24
		return isset($this->config['qte_version']) && phpbb_version_compare($this->config['qte_version'], '1.0.0-rc5', '>=');
25
	}
26
27
	public function update_data()
28
	{
29
		return array(
30
			array('config.add', array('qte_version', '1.0.0-rc5')),
31
		);
32
	}
33
}
34