paypal_info   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 0 Features 1
Metric Value
wmc 1
c 3
b 0
f 1
lcom 0
cbo 0
dl 0
loc 28
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
B module() 0 25 1
1
<?php
2
/**
3
*
4
* @package phpBB Extension - tas2580 Paypal
5
* @copyright (c) 2015 tas2580 (https://tas2580.net)
6
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
7
*
8
*/
9
10
namespace tas2580\paypal\acp;
11
12
class paypal_info
13
{
14
	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...
15
	{
16
		return array(
17
			'filename'		=> '\tas2580\paypal\paypal_module',
18
			'title'			=> 'ACP_PAYPAL_TITLE',
19
			'version'		=> '0.1.0',
20
			'modes'		=> array(
21
				'settings'		=> array(
22
					'title'		=> 'ACP_PAYPAL_SETTINGS',
23
					'auth'		=> 'ext_tas2580/paypal && acl_a_board',
24
					'cat'		=> array('ACP_PAYPAL_TITLE')
25
				),
26
				'items'		=> array(
27
					'title'		=> 'ACP_PAYPAL_ITEMS',
28
					'auth'		=> 'ext_tas2580/paypal && acl_a_board',
29
					'cat'		=> array('ACP_PAYPAL_TITLE')
30
				),
31
				'donations'		=> array(
32
					'title'		=> 'ACP_PAYPAL_DONATIONS',
33
					'auth'		=> 'ext_tas2580/paypal && acl_a_board',
34
					'cat'		=> array('ACP_PAYPAL_TITLE')
35
				),
36
			),
37
		);
38
	}
39
}
40