Code Duplication    Length = 19-19 lines in 6 locations

migrations/v100/gold.php 1 location

@@ 15-33 (lines=19) @@
12
13
namespace ernadoo\qte\migrations\v100;
14
15
class gold extends \phpbb\db\migration\migration
16
{
17
	static public function depends_on()
18
	{
19
		return array('\ernadoo\qte\migrations\v100\rc6');
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', '>=');
25
	}
26
27
	public function update_data()
28
	{
29
		return array(
30
			array('config.add', array('qte_version', '1.0.0')),
31
		);
32
	}
33
}
34

migrations/v100/rc5.php 1 location

@@ 15-33 (lines=19) @@
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

migrations/v11x/v111.php 1 location

@@ 15-33 (lines=19) @@
12
13
namespace ernadoo\qte\migrations\v11x;
14
15
class v111 extends \phpbb\db\migration\migration
16
{
17
	static public function depends_on()
18
	{
19
		return array('\ernadoo\qte\migrations\v11x\v110');
20
	}
21
22
	public function effectively_installed()
23
	{
24
		return isset($this->config['qte_version']) && phpbb_version_compare($this->config['qte_version'], '1.1.1', '>=');
25
	}
26
27
	public function update_data()
28
	{
29
		return array(
30
			array('config.update', array('qte_version', '1.1.1')),
31
		);
32
	}
33
}
34

migrations/v12x/v121.php 1 location

@@ 15-33 (lines=19) @@
12
13
namespace ernadoo\qte\migrations\v12x;
14
15
class v121 extends \phpbb\db\migration\migration
16
{
17
	static public function depends_on()
18
	{
19
		return array('\ernadoo\qte\migrations\v12x\v120');
20
	}
21
22
	public function effectively_installed()
23
	{
24
		return isset($this->config['qte_version']) && phpbb_version_compare($this->config['qte_version'], '1.2.1', '>=');
25
	}
26
27
	public function update_data()
28
	{
29
		return array(
30
			array('config.update', array('qte_version', '1.2.1')),
31
		);
32
	}
33
}
34

migrations/v12x/v122.php 1 location

@@ 15-33 (lines=19) @@
12
13
namespace ernadoo\qte\migrations\v12x;
14
15
class v122 extends \phpbb\db\migration\migration
16
{
17
	static public function depends_on()
18
	{
19
		return array('\ernadoo\qte\migrations\v12x\v121');
20
	}
21
22
	public function effectively_installed()
23
	{
24
		return isset($this->config['qte_version']) && phpbb_version_compare($this->config['qte_version'], '1.2.2', '>=');
25
	}
26
27
	public function update_data()
28
	{
29
		return array(
30
			array('config.update', array('qte_version', '1.2.2')),
31
		);
32
	}
33
}
34

migrations/v12x/v125.php 1 location

@@ 15-33 (lines=19) @@
12
13
namespace ernadoo\qte\migrations\v12x;
14
15
class v125 extends \phpbb\db\migration\migration
16
{
17
	static public function depends_on()
18
	{
19
		return array('\ernadoo\qte\migrations\v12x\v122');
20
	}
21
22
	public function effectively_installed()
23
	{
24
		return isset($this->config['qte_version']) && phpbb_version_compare($this->config['qte_version'], '1.2.5', '>=');
25
	}
26
27
	public function update_data()
28
	{
29
		return array(
30
			array('config.update', array('qte_version', '1.2.5')),
31
		);
32
	}
33
}
34