Code Duplication    Length = 2-2 lines in 3 locations

Sources/Subs.php 3 locations

@@ 2609-2610 (lines=2) @@
2606
				$tag['validate']($tag, $data, $disabled, $params);
2607
2608
			$code = $tag['content'];
2609
			foreach ($data as $k => $d)
2610
				$code = strtr($code, array('$' . ($k + 1) => trim($d)));
2611
			$message = substr($message, 0, $pos) . "\n" . $code . "\n" . substr($message, $pos3 + 3 + $tag_strlen);
2612
			$pos += strlen($code) - 1 + 2;
2613
		}
@@ 2627-2628 (lines=2) @@
2624
				$tag['validate']($tag, $data, $disabled, $params);
2625
2626
			// Fix after, for disabled code mainly.
2627
			foreach ($data as $k => $d)
2628
				$tag['after'] = strtr($tag['after'], array('$' . ($k + 1) => trim($d)));
2629
2630
			$open_tags[] = $tag;
2631
@@ 2634-2635 (lines=2) @@
2631
2632
			// Replace them out, $1, $2, $3, $4, etc.
2633
			$code = $tag['before'];
2634
			foreach ($data as $k => $d)
2635
				$code = strtr($code, array('$' . ($k + 1) => trim($d)));
2636
			$message = substr($message, 0, $pos) . "\n" . $code . "\n" . substr($message, $pos2 + 1);
2637
			$pos += strlen($code) - 1 + 2;
2638
		}