Passed
Push — master ( bc9a55...f3faba )
by Dark❶
07:56
created

main_info   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 9
c 1
b 0
f 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A module() 0 10 1
1
<?php
2
/**
3
 *
4
 * User Notification Control [UNC]. An extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2020, 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 array(
21
			'filename'	=> '\dark1\usernotificationcontrol\acp\main_module',
22
			'title'		=> 'ACP_UNC_TITLE',
23
			'modes'		=> array(
24
				'main'	=> array(
25
					'title'	=> 'ACP_UNC_MAIN',
26
					'auth'	=> 'ext_dark1/usernotificationcontrol && acl_a_board',
27
					'cat'	=> array('ACP_UNC_TITLE')
28
				),
29
			),
30
		);
31
	}
32
}
33