albums_info::module()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 8
c 0
b 0
f 0
dl 0
loc 10
ccs 0
cts 10
cp 0
rs 10
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 2007-2012 nickvergessen, 2014- satanasov, 2018- Leinad4Mind
10
 * @license   GPL-2.0-only
11
 */
12
13
namespace phpbbgallery\core\acp;
14
15
class albums_info
16
{
17
	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...
18
	{
19
		return array(
20
			'title'		=> 'PHPBB_GALLERY',
21
			'version'	=> '1.0.0',
22
			'modes'		=> array(
23
				'manage'	=> array(
24
					'title' => 'ACP_GALLERY_MANAGE_ALBUMS',
25
					'auth' => 'ext_phpbbgallery/core && acl_a_gallery_albums',
26
					'cat' => array('PHPBB_GALLERY')
27
				),
28
			),
29
		);
30
	}
31
}
32