rsi_002::depends_on()   A
last analyzed

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-forever, 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
/**
14
 * @ignore
15
 */
16
use phpbb\db\migration\migration;
17
18
/**
19
 * Migration stage 002 : N/A
20
 */
21
class rsi_002 extends migration
22
{
23
	static public function depends_on()
24
	{
25
		return ['\dark1\reducesearchindex\migrations\rsi_001_install'];
26
	}
27
28
	public function update_data()
29
	{
30
		return [
31
			// Remove Config if Exist
32
			['if', [
33
				isset($this->config['dark1_rsi']),
34
				['config.remove', ['dark1_rsi']],
35
			]],
36
		];
37
	}
38
}
39