DraftsIntegrate   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 8
dl 0
loc 27
rs 10
c 0
b 0
f 0
ccs 0
cts 12
cp 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A settingsRegister() 0 9 1
A register() 0 4 1
1
<?php
2
3
/**
4
 * A class to handle the basic drafts integrations.
5
 *
6
 * @package   ElkArte Forum
7
 * @copyright ElkArte Forum contributors
8
 * @license   BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
9
 *
10
 * @version 2.0 dev
11
 *
12
 */
13
14
namespace ElkArte;
15
16
/**
17
 * Integration trick.
18
 */
19
class DraftsIntegrate
20
{
21
	/**
22
	 * Registers hooks as needed for the drafts function to work
23
	 *
24
	 * @return array
25
	 */
26
	public static function register(): array
27
	{
28
		// $hook, $function, $file
29
		return [];
30
	}
31
32
	/**
33
	 * Returns the config settings form the drafts module
34
	 *
35
	 * @return array
36
	 */
37
	public static function settingsRegister(): array
38
	{
39
		// $hook, $function, $file
40
		return [
41
			['integrate_load_permissions', '\\ElkArte\\AdminController\\ManageDraftsModule::integrate_load_permissions'],
42
			['integrate_topics_maintenance', '\\ElkArte\\AdminController\\ManageDraftsModule::integrate_topics_maintenance'],
43
			['integrate_sa_manage_maintenance', '\\ElkArte\\AdminController\\ManageDraftsModule::integrate_sa_manage_maintenance'],
44
			['integrate_delete_members', '\\ElkArte\\AdminController\\ManageDraftsModule::integrate_delete_members'],
45
			['integrate_load_illegal_guest_permissions', '\\ElkArte\\AdminController\\ManageDraftsModule::integrate_load_illegal_guest_permissions'],
46
		];
47
	}
48
}
49