SignupFactory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 3
dl 0
loc 30
ccs 10
cts 10
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A newUserAccountDataChecker() 0 3 1
A newFormPrinterHandler() 0 12 1
1
<?php
2
3
namespace SES;
4
5
use Title;
6
7
/**
8
 * @license GNU GPL v2+
9
 * @since 1.1
10
 *
11
 * @author mwjames
12
 */
13
class SignupFactory {
14
15
	/**
16
	 * @since  1.1
17
	 *
18
	 * @return FormPrinterHandler
19
	 */
20 1
	public function newFormPrinterHandler() {
21
22 1
		$form = Title::newFromText(
23 1
			Settings::get( 'formName' ),
24
			SF_NS_FORM
25 1
		);
26
27 1
		return new FormPrinterHandler(
28 1
			$form,
29 1
			$GLOBALS['sfgFormPrinter']
30 1
		);
31
	}
32
33
	/**
34
	 * @since 1.1
35
	 *
36
	 * @return UserAccountDataChecker
37
	 */
38 1
	public function newUserAccountDataChecker() {
39 1
		return new UserAccountDataChecker();
40
	}
41
42
}
43