add_permissions   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A update_data() 0 10 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_permissions extends migration
15
{
16
	public function update_data()
17
	{
18
		return array(
19
			array('permission.add', array('u_shoutbox_view')),
20
			array('permission.add', array('u_shoutbox_post')),
21
			array('permission.add', array('u_shoutbox_bbcode')),
22
			array('permission.add', array('u_shoutbox_delete')),
23
			array('permission.add', array('m_shoutbox_delete')),
24
		);
25
	}
26
}
27