initial_module   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 28
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A update_data() 0 19 1
1
<?php
2
/**
3
 *
4
 * 2FA extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2015 Paul Sohier
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace paul999\tfa\migrations;
12
13
class initial_module extends \phpbb\db\migration\migration
14
{
15
	/**
16
	 * Add or update data in the database
17
	 *
18
	 * @return array Array of table data
19
	 * @access public
20
	 */
21
	public function update_data()
22
	{
23
		return array(
24
			array('module.add', array('acp', 'ACP_CAT_DOT_MODS', 'ACP_TFA')),
25
			array('module.add', array(
26
				'acp', 'ACP_TFA', array(
27
					'module_basename'	=> '\paul999\tfa\acp\tfa_module',
28
					'modes'				=> array('manage'),
29
				),
30
			)),
31
			array('module.add', array('ucp', '', 'UCP_TFA')),
32
			array('module.add', array(
33
				'ucp', 'UCP_TFA', array(
34
					'module_basename'	=> '\paul999\tfa\ucp\tfa_module',
35
					'modes'				=> array('manage'),
36
				),
37
			)),
38
		);
39
	}
40
}
41