Passed
Pull Request — master (#1)
by Dark❶
03:30
created

main_info::module()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 20
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 16
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 20
rs 9.7333
1
<?php
2
/**
3
 *
4
 * Reduce Search Index [RSI]. 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\reducesearchindex\acp;
12
13
/**
14
 * Reduce Search Index [RSI] ACP module info.
15
 */
16
class main_info
17
{
18
	public function module()
19
	{
20
		return array(
21
			'filename'	=> '\dark1\reducesearchindex\acp\main_module',
22
			'title'		=> 'ACP_RSI_TITLE',
23
			'modes'		=> array(
24
				'main'	=> array(
25
					'title'	=> 'ACP_RSI_MAIN',
26
					'auth'	=> 'ext_dark1/reducesearchindex && acl_a_board',
27
					'cat'	=> array('ACP_RSI_TITLE')
28
				),
29
				'forum'	=> array(
30
					'title'	=> 'ACP_RSI_FORUM',
31
					'auth'	=> 'ext_dark1/reducesearchindex && acl_a_board',
32
					'cat'	=> array('ACP_RSI_TITLE')
33
				),
34
				'cron'	=> array(
35
					'title'	=> 'ACP_RSI_CRON',
36
					'auth'	=> 'ext_dark1/reducesearchindex && acl_a_board',
37
					'cat'	=> array('ACP_RSI_TITLE')
38
				),
39
			),
40
		);
41
	}
42
}
43