main_info::module()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 13
c 0
b 0
f 0
dl 0
loc 16
ccs 0
cts 16
cp 0
rs 9.8333
cc 1
nc 1
nop 0
crap 2
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