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

main_info   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A module() 0 20 1
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