newSignupFieldsParserFunctionDefinition()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 13
ccs 8
cts 8
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
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