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

main_info   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 17
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0

1 Method

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