Code Duplication    Length = 2-2 lines in 3 locations

Sources/Subs.php 3 locations

@@ 2623-2624 (lines=2) @@
2620
				$tag['validate']($tag, $data, $disabled, $params);
2621
2622
			$code = $tag['content'];
2623
			foreach ($data as $k => $d)
2624
				$code = strtr($code, array('$' . ($k + 1) => trim($d)));
2625
			$message = substr($message, 0, $pos) . "\n" . $code . "\n" . substr($message, $pos3 + 3 + $tag_strlen);
2626
			$pos += strlen($code) - 1 + 2;
2627
		}
@@ 2641-2642 (lines=2) @@
2638
				$tag['validate']($tag, $data, $disabled, $params);
2639
2640
			// Fix after, for disabled code mainly.
2641
			foreach ($data as $k => $d)
2642
				$tag['after'] = strtr($tag['after'], array('$' . ($k + 1) => trim($d)));
2643
2644
			$open_tags[] = $tag;
2645
@@ 2648-2649 (lines=2) @@
2645
2646
			// Replace them out, $1, $2, $3, $4, etc.
2647
			$code = $tag['before'];
2648
			foreach ($data as $k => $d)
2649
				$code = strtr($code, array('$' . ($k + 1) => trim($d)));
2650
			$message = substr($message, 0, $pos) . "\n" . $code . "\n" . substr($message, $pos2 + 1);
2651
			$pos += strlen($code) - 1 + 2;
2652
		}