Passed
Push — master ( 318807...10110e )
by Dark❶
07:11
created

rsi_002   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A depends_on() 0 3 1
A update_data() 0 7 1
1
<?php
2
/**
3
 *
4
 * Reduce Search Index [RSI]. An extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2020, Dark❶, https://dark1.tech
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace dark1\reducesearchindex\migrations;
12
13
use phpbb\db\migration\migration;
14
15
class rsi_002 extends migration
16
{
17
18
	static public function depends_on()
19
	{
20
		return array('\dark1\reducesearchindex\migrations\rsi_001_install');
21
	}
22
23
	public function update_data()
24
	{
25
		return array(
26
			// Remove Config if Exist
27
			array('if', array(
28
				isset($this->config['dark1_rsi']),
29
				array('config.remove', array('dark1_rsi')),
30
			)),
31
		);
32
	}
33
}
34