Code Duplication    Length = 2-2 lines in 3 locations

Sources/Subs.php 3 locations

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