Completed
Push — develop-3.2.x ( 86239d...17b6f9 )
by Matt
05:09 queued 02:36
created

release_1_3_1_data   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A effectively_installed() 0 4 1
A depends_on() 0 4 1
A update_data() 0 7 1
1
<?php
2
/**
3
*
4
* Precise Similar Topics
5
*
6
* @copyright (c) 2014 Matt Friedman
7
* @license GNU General Public License, version 2 (GPL-2.0)
8
*
9
*/
10
11
namespace vse\similartopics\migrations;
12
13
class release_1_3_1_data extends \phpbb\db\migration\migration
14
{
15
	public function effectively_installed()
16
	{
17
		return !isset($this->config['similar_topics_version']);
18
	}
19
20
	static public function depends_on()
21
	{
22
		return array('\vse\similartopics\migrations\release_1_3_0_data');
23
	}
24
25
	public function update_data()
26
	{
27
		return array(
28
			// Remove version config
29
			array('config.remove', array('similar_topics_version')),
30
		);
31
	}
32
}
33