ParserFunctionFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A newSignupFieldsParserFunctionDefinition() 0 13 1
1
<?php
2
3
namespace SES;
4
5
use Parser;
6
7
/**
8
 * @license GNU GPL v2+
9
 * @since 1.0
10
 *
11
 * @author mwjames
12
 */
13
class ParserFunctionFactory {
14
15
	/**
16
	 * @since  1.0
17
	 *
18
	 * @return array
19
	 */
20 1
	public function newSignupFieldsParserFunctionDefinition() {
21
22 1
		$signupfieldsParserDefinition = function( $parser ) {
0 ignored issues
show
Unused Code introduced by
The parameter $parser is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
23
24 1
			$signupFieldsParserFunction = new SignupFieldsParserFunction(
25 1
				new UserFieldsCreateTemplate()
26 1
			);
27
28 1
			return $signupFieldsParserFunction->parse( func_get_args() );
29 1
		};
30
31 1
		return array( 'signupfields', $signupfieldsParserDefinition, 0 );
32
	}
33
34
}
35