mas_0005_review::update_data()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 9
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 15
rs 9.9666
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 0005 : Review
20
 */
21
class mas_0005_review extends migration
22
{
23
	static public function depends_on()
24
	{
25
		return ['\dark1\memberavatarstatus\migrations\mas_0004_search'];
26
	}
27
28
	public function update_data()
29
	{
30
		return [
31
			// Config Add
32
			['config.add', ['dark1_mas_rv_av', 0]],
33
			['config.add', ['dark1_mas_rv_ol', 0]],
34
			['config.add', ['dark1_mas_rv_av_sz', 20]],
35
36
			// Module Add
37
			['module.add', [
38
				'acp',
39
				'ACP_MAS_TITLE',
40
				[
41
					'module_basename'	=> '\dark1\memberavatarstatus\acp\review_module',
42
					'modes'				=> ['review'],
43
				],
44
			]],
45
		];
46
	}
47
}
48