topic_preview_info::module()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 7
rs 10
c 1
b 0
f 0
ccs 4
cts 4
cp 1
crap 1
1
<?php
2
/**
3
 *
4
 * Topic Preview
5
 *
6
 * @copyright (c) 2013 Matt Friedman
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace vse\topicpreview\acp;
12
13
/**
14
 * @package module_install
15
 */
16
class topic_preview_info
17
{
18 1
	public function module()
19
	{
20
		return array(
21 1
			'filename'	=> '\vse\topicpreview\acp\topic_preview_module',
22 1
			'title'		=> 'TOPIC_PREVIEW',
23
			'modes'		=> array(
24 1
				'settings'	=> array('title' => 'TOPIC_PREVIEW_SETTINGS', 'auth' => 'ext_vse/topicpreview && acl_a_board', 'cat' => array('TOPIC_PREVIEW')),
25 1
			),
26 1
		);
27
	}
28
}
29