main_info::module()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 12
c 1
b 0
f 0
dl 0
loc 15
rs 9.8666
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 *
4
 * User Notification Control [UNC]. An extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2020-forever, Dark❶, https://dark1.tech
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace dark1\usernotificationcontrol\acp;
12
13
/**
14
 * User Notification Control [UNC] ACP module info.
15
 */
16
class main_info
17
{
18
	public function module()
19
	{
20
		return [
21
			'filename'	=> '\dark1\usernotificationcontrol\acp\main_module',
22
			'title'		=> 'ACP_UNC_TITLE',
23
			'modes'		=> [
24
				'main'	=> [
25
					'title'	=> 'ACP_UNC_MAIN',
26
					'auth'	=> 'ext_dark1/usernotificationcontrol && acl_a_board',
27
					'cat'	=> ['ACP_UNC_TITLE']
28
				],
29
				'prune'	=> [
30
					'title'	=> 'ACP_UNC_PRUNE',
31
					'auth'	=> 'ext_dark1/usernotificationcontrol && acl_a_board',
32
					'cat'	=> ['ACP_UNC_TITLE']
33
				],
34
			],
35
		];
36
	}
37
}
38