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
	/* Number: / [0-9]+ / */
@@ 468-475 (lines=8) @@
465
466
	/* Number: / [0-9]+ / */
467
	protected $match_Number_typestack = array('Number');
468
	function match_Number ($stack = array()) {
469
		$matchrule = "Number"; $result = $this->construct($matchrule, $matchrule, null);
470
		if (( $subres = $this->rx( '/ [0-9]+ /' ) ) !== FALSE) {
471
			$result["text"] .= $subres;
472
			return $this->finalise($result);
473
		}
474
		else { return FALSE; }
475
	}
476
477
478
	/* Value: / [A-Za-z0-9_]+ / */
@@ 480-487 (lines=8) @@
477
478
	/* Value: / [A-Za-z0-9_]+ / */
479
	protected $match_Value_typestack = array('Value');
480
	function match_Value ($stack = array()) {
481
		$matchrule = "Value"; $result = $this->construct($matchrule, $matchrule, null);
482
		if (( $subres = $this->rx( '/ [A-Za-z0-9_]+ /' ) ) !== FALSE) {
483
			$result["text"] .= $subres;
484
			return $this->finalise($result);
485
		}
486
		else { return FALSE; }
487
	}
488
489
490
	/* CallArguments: :Argument ( < "," < :Argument )* */
@@ 918-925 (lines=8) @@
915
916
	/* Entity: / [A-Za-z_] [\w\.]* / */
917
	protected $match_Entity_typestack = array('Entity');
918
	function match_Entity ($stack = array()) {
919
		$matchrule = "Entity"; $result = $this->construct($matchrule, $matchrule, null);
920
		if (( $subres = $this->rx( '/ [A-Za-z_] [\w\.]* /' ) ) !== FALSE) {
921
			$result["text"] .= $subres;
922
			return $this->finalise($result);
923
		}
924
		else { return FALSE; }
925
	}
926
927
928
@@ 1118-1125 (lines=8) @@
1115
1116
	/* FreeString: /[^,)%!=><|&]+/ */
1117
	protected $match_FreeString_typestack = array('FreeString');
1118
	function match_FreeString ($stack = array()) {
1119
		$matchrule = "FreeString"; $result = $this->construct($matchrule, $matchrule, null);
1120
		if (( $subres = $this->rx( '/[^,)%!=><|&]+/' ) ) !== FALSE) {
1121
			$result["text"] .= $subres;
1122
			return $this->finalise($result);
1123
		}
1124
		else { return FALSE; }
1125
	}
1126
1127
1128
	/* Argument:
@@ 3066-3073 (lines=8) @@
3063
3064
	/* N: / [\s\n]* / */
3065
	protected $match_N_typestack = array('N');
3066
	function match_N ($stack = array()) {
3067
		$matchrule = "N"; $result = $this->construct($matchrule, $matchrule, null);
3068
		if (( $subres = $this->rx( '/ [\s\n]* /' ) ) !== FALSE) {
3069
			$result["text"] .= $subres;
3070
			return $this->finalise($result);
3071
		}
3072
		else { return FALSE; }
3073
	}
3074
3075
3076