Passed
Pull Request — master (#8)
by
unknown
12:51
created

akismet_info::module()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 8
nc 1
nop 0
dl 0
loc 10
rs 10
c 0
b 0
f 0
ccs 6
cts 6
cp 1
crap 1
1
<?php
2
/**
3
 *
4
 * Akismet. An extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2018 Jakub Senko <[email protected]>
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace senky\akismet\acp;
12
13
class akismet_info
14
{
15 1
	public function module()
16
	{
17
		return array(
18 1
			'filename'	=> '\senky\akismet\acp\akismet_module',
19 1
			'title'		=> 'ACP_AKISMET_TITLE',
20
			'modes'		=> array(
21
				'settings'	=> array(
22 1
					'title'	=> 'ACP_AKISMET_SETTINGS',
23 1
					'auth'	=> 'ext_senky/akismet && acl_a_board',
24 1
					'cat'	=> array('ACP_AKISMET_TITLE'),
25 1
				),
26 1
			),
27 1
		);
28
	}
29
}
30