main_info   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 14
c 0
b 0
f 0
dl 0
loc 18
ccs 0
cts 16
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A module() 0 16 1
1
<?php
2
/**
3
 * phpBB Gallery - Core Extension
4
 *
5
 * @package   phpbbgallery/core
6
 * @author    nickvergessen
7
 * @author    satanasov
8
 * @author    Leinad4Mind
9
 * @copyright 2014 nickvergessen, 2014- satanasov, 2018- Leinad4Mind
10
 * @license   GPL-2.0-only
11
 */
12
13
namespace phpbbgallery\core\ucp;
14
15
/**
16
* @package module_install
17
*/
18
class main_info
19
{
20
	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...
21
	{
22
		return array(
23
			'filename'	=> '\phpbbgallery\core\ucp\main_module',
24
			'title'		=> 'PHPBB_GALLERY',
25
			'version'	=> '1.0.0',
26
			'modes'		=> array(
27
				'manage_albums'			=> array(
28
					'title' => 'UCP_GALLERY_PERSONAL_ALBUMS',
29
					'auth' => 'ext_phpbbgallery/core',
30
					'cat' => array('PHPBB_GALLERY')
31
				),
32
				'manage_subscriptions'	=> array(
33
					'title' => 'UCP_GALLERY_WATCH',
34
					'auth' => 'ext_phpbbgallery/core',
35
					'cat' => array('PHPBB_GALLERY')
36
				),
37
			),
38
		);
39
	}
40
}
41