Code Duplication    Length = 9-9 lines in 2 locations

view/SSTemplateParser.php 1 location

@@ 3093-3101 (lines=9) @@
3090
		$res['php'] = "_t(";
3091
	}
3092
	
3093
	function OldTPart_QuotedString(&$res, $sub) {
3094
		$entity = $sub['String']['text'];
3095
		if (strpos($entity, '.') === false) {
3096
			$res['php'] .= "\$scope->XML_val('I18NNamespace').'.$entity'";
3097
		}
3098
		else {
3099
			$res['php'] .= "'$entity'";
3100
		}
3101
	}
3102
	
3103
	function OldTPart_CallArguments(&$res, $sub) {
3104
		$res['php'] .= ',' . $sub['php'];

view/SSTemplateParser.php.inc 1 location

@@ 722-730 (lines=9) @@
719
		$res['php'] = "_t(";
720
	}
721
	
722
	function OldTPart_QuotedString(&$res, $sub) {
723
		$entity = $sub['String']['text'];
724
		if (strpos($entity, '.') === false) {
725
			$res['php'] .= "\$scope->XML_val('I18NNamespace').'.$entity'";
726
		}
727
		else {
728
			$res['php'] .= "'$entity'";
729
		}
730
	}
731
	
732
	function OldTPart_CallArguments(&$res, $sub) {
733
		$res['php'] .= ',' . $sub['php'];