add_module   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A update_data() 0 12 1
1
<?php
2
/**
3
 *
4
 * Ajax Shoutbox extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2014 Paul Sohier <http://www.ajax-shoutbox.com>
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
namespace paul999\ajaxshoutbox\migrations;
11
12
use phpbb\db\migration\migration;
13
14
class add_module extends migration
15
{
16
	public function update_data()
17
	{
18
		return array(
19
			array('module.add', array('acp', 'ACP_CAT_DOT_MODS', 'ACP_AJAX_SHOUTBOX')),
20
			array('module.add', array(
21
				'acp', 'ACP_AJAX_SHOUTBOX', array(
22
					'module_basename'	=> '\paul999\ajaxshoutbox\acp\acp_module',
23
					'modes'				=> array('settings'),
24
				),
25
			)),
26
		);
27
	}
28
}
29