add_permissions::update_data()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 1
eloc 7
nc 1
nop 0
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