Code Duplication    Length = 8-8 lines in 6 locations

view/SSTemplateParser.php 6 locations

@@ 456-463 (lines=8) @@
453
	
454
	/* Word: / [A-Za-z_] [A-Za-z0-9_]* / */
455
	protected $match_Word_typestack = array('Word');
456
	function match_Word ($stack = array()) {
457
		$matchrule = "Word"; $result = $this->construct($matchrule, $matchrule, null);
458
		if (( $subres = $this->rx( '/ [A-Za-z_] [A-Za-z0-9_]* /' ) ) !== FALSE) {
459
			$result["text"] .= $subres;
460
			return $this->finalise($result);
461
		}
462
		else { return FALSE; }
463
	}
464
465
466
	/* NamespacedWord: / [A-Za-z_\/\\] [A-Za-z0-9_\/\\]* / */
@@ 480-487 (lines=8) @@
477
478
	/* Number: / [0-9]+ / */
479
	protected $match_Number_typestack = array('Number');
480
	function match_Number ($stack = array()) {
481
		$matchrule = "Number"; $result = $this->construct($matchrule, $matchrule, null);
482
		if (( $subres = $this->rx( '/ [0-9]+ /' ) ) !== FALSE) {
483
			$result["text"] .= $subres;
484
			return $this->finalise($result);
485
		}
486
		else { return FALSE; }
487
	}
488
489
490
	/* Value: / [A-Za-z0-9_]+ / */
@@ 492-499 (lines=8) @@
489
490
	/* Value: / [A-Za-z0-9_]+ / */
491
	protected $match_Value_typestack = array('Value');
492
	function match_Value ($stack = array()) {
493
		$matchrule = "Value"; $result = $this->construct($matchrule, $matchrule, null);
494
		if (( $subres = $this->rx( '/ [A-Za-z0-9_]+ /' ) ) !== FALSE) {
495
			$result["text"] .= $subres;
496
			return $this->finalise($result);
497
		}
498
		else { return FALSE; }
499
	}
500
501
502
	/* CallArguments: :Argument ( < "," < :Argument )* */
@@ 930-937 (lines=8) @@
927
928
	/* Entity: / [A-Za-z_] [\w\.]* / */
929
	protected $match_Entity_typestack = array('Entity');
930
	function match_Entity ($stack = array()) {
931
		$matchrule = "Entity"; $result = $this->construct($matchrule, $matchrule, null);
932
		if (( $subres = $this->rx( '/ [A-Za-z_] [\w\.]* /' ) ) !== FALSE) {
933
			$result["text"] .= $subres;
934
			return $this->finalise($result);
935
		}
936
		else { return FALSE; }
937
	}
938
939
940
@@ 1130-1137 (lines=8) @@
1127
1128
	/* FreeString: /[^,)%!=><|&]+/ */
1129
	protected $match_FreeString_typestack = array('FreeString');
1130
	function match_FreeString ($stack = array()) {
1131
		$matchrule = "FreeString"; $result = $this->construct($matchrule, $matchrule, null);
1132
		if (( $subres = $this->rx( '/[^,)%!=><|&]+/' ) ) !== FALSE) {
1133
			$result["text"] .= $subres;
1134
			return $this->finalise($result);
1135
		}
1136
		else { return FALSE; }
1137
	}
1138
1139
1140
	/* Argument:
@@ 3078-3085 (lines=8) @@
3075
3076
	/* N: / [\s\n]* / */
3077
	protected $match_N_typestack = array('N');
3078
	function match_N ($stack = array()) {
3079
		$matchrule = "N"; $result = $this->construct($matchrule, $matchrule, null);
3080
		if (( $subres = $this->rx( '/ [\s\n]* /' ) ) !== FALSE) {
3081
			$result["text"] .= $subres;
3082
			return $this->finalise($result);
3083
		}
3084
		else { return FALSE; }
3085
	}
3086
3087
3088