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

rsi_002::depends_on()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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