permissions_info::module()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 12
c 0
b 0
f 0
dl 0
loc 15
ccs 0
cts 15
cp 0
rs 9.8666
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 permissions_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_ALBUM_PERMISSIONS',
25
					'auth' => 'ext_phpbbgallery/core && acl_a_gallery_albums',
26
					'cat' => array('PHPBB_GALLERY')
27
				),
28
				'copy'		=> array(
29
					'title' => 'ACP_GALLERY_ALBUM_PERMISSIONS_COPY',
30
					'auth' => 'ext_phpbbgallery/core && acl_a_gallery_albums',
31
					'cat' => array('PHPBB_GALLERY')
32
				),
33
			),
34
		);
35
	}
36
}
37