viglink_data_v2   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 6
c 1
b 0
f 0
dl 0
loc 17
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A depends_on() 0 3 1
A effectively_installed() 0 3 1
A update_data() 0 5 1
1
<?php
2
/**
3
 *
4
 * VigLink extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace phpbb\viglink\migrations;
12
13
/**
14
 * Migration to remove VigLink data
15
 */
16
class viglink_data_v2 extends \phpbb\db\migration\migration
17
{
18
	public static function depends_on()
19
	{
20
		return array('\phpbb\viglink\migrations\viglink_data');
21
	}
22
23
	public function effectively_installed()
24
	{
25
		return !isset($this->config['viglink_api_key']);
26
	}
27
28
	public function update_data()
29
	{
30
		return array(
31
			array('config.remove', array('viglink_api_key')),
32
			array('config.remove', array('allow_viglink_global')),
33
		);
34
	}
35
}
36