Passed
Push — master ( d4eec7...bde0dd )
by Dark❶
02:11
created

mas_0003_viewforum::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
 * Member Avatar & Status [MAS]. An extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2018-2020, Dark❶ [dark1]
7
 * @license GNU General Public License, version 2 (GPL-2.0-only)
8
 *
9
 */
10
11
namespace dark1\memberavatarstatus\migrations;
12
13
class mas_0003_viewforum extends \phpbb\db\migration\migration
14
{
15
	static public function depends_on()
16
	{
17
		return array('\dark1\memberavatarstatus\migrations\mas_0002_viewonline');
18
	}
19
20
	public function update_data()
21
	{
22
		return array(
23
			// Config Add
24
			array('config.add', array('dark1_mas_vf_fp_av', 0)),
25
			array('config.add', array('dark1_mas_vf_fp_ol', 0)),
26
			array('config.add', array('dark1_mas_vf_fp_av_sz', 20)),
27
			array('config.add', array('dark1_mas_vf_lp_av', 0)),
28
			array('config.add', array('dark1_mas_vf_lp_ol', 0)),
29
			array('config.add', array('dark1_mas_vf_lp_av_sz', 20)),
30
31
			// Module Add
32
			array('module.add', array(
33
				'acp',
34
				'ACP_MAS_TITLE',
35
				array(
36
					'module_basename'	=> '\dark1\memberavatarstatus\acp\viewforum_module',
37
					'modes'				=> array('viewforum'),
38
				),
39
			)),
40
		);
41
	}
42
}
43