Completed
Pull Request — master (#48)
by Jakub
11:14 queued 02:07
created

main_info::module()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 9
cts 9
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 9
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 *
4
 * Advertisement management. An extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2017 phpBB Limited <https://www.phpbb.com>
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace phpbb\ads\ucp;
12
13
/**
14
 * Advertisement management UCP module info.
15
 */
16
class main_info
17
{
18 1
	function module()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
19
	{
20
		return array(
21 1
			'filename'	=> '\phpbb\ads\ucp\main_module',
22 1
			'title'		=> 'UCP_PHPBB_ADS_TITLE',
23
			'modes'		=> array(
24
				'stats'	=> array(
25 1
					'title'	=> 'UCP_PHPBB_ADS_STATS',
26 1
					'auth'	=> 'ext_phpbb/ads',
27 1
					'cat'	=> array('UCP_PHPBB_ADS_TITLE')
28 1
				),
29 1
			),
30 1
		);
31
	}
32
}
33