mas_0007_friendlist::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
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
/**
3
 *
4
 * Member Avatar & Status [MAS]. An extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2018-forever, Dark❶ [dark1]
7
 * @license GNU General Public License, version 2 (GPL-2.0-only)
8
 *
9
 */
10
11
namespace dark1\memberavatarstatus\migrations;
12
13
/**
14
 * @ignore
15
 */
16
use phpbb\db\migration\migration;
17
18
/**
19
 * Migration stage 0007 : Friendlist
20
 */
21
class mas_0007_friendlist extends migration
22
{
23
	static public function depends_on()
24
	{
25
		return ['\dark1\memberavatarstatus\migrations\mas_0006_general'];
26
	}
27
28
	public function update_data()
29
	{
30
		return [
31
			// Remove Config
32
			['config.remove', ['dark1_mas']],
33
34
			// Config Add
35
			['config.add', ['dark1_mas_fl_av', 0]],
36
			['config.add', ['dark1_mas_fl_ol', 0]],
37
			['config.add', ['dark1_mas_fl_av_sz', 20]],
38
39
			// Module Add
40
			['module.add', [
41
				'acp',
42
				'ACP_MAS_TITLE',
43
				[
44
					'module_basename'	=> '\dark1\memberavatarstatus\acp\friendlist_module',
45
					'modes'				=> ['friendlist'],
46
				],
47
			]],
48
		];
49
	}
50
}
51