Code Duplication    Length = 2-2 lines in 3 locations

Sources/Subs.php 3 locations

@@ 2589-2590 (lines=2) @@
2586
				$tag['validate']($tag, $data, $disabled, $params);
2587
2588
			$code = $tag['content'];
2589
			foreach ($data as $k => $d)
2590
				$code = strtr($code, array('$' . ($k + 1) => trim($d)));
2591
			$message = substr($message, 0, $pos) . "\n" . $code . "\n" . substr($message, $pos3 + 3 + $tag_strlen);
2592
			$pos += strlen($code) - 1 + 2;
2593
		}
@@ 2607-2608 (lines=2) @@
2604
				$tag['validate']($tag, $data, $disabled, $params);
2605
2606
			// Fix after, for disabled code mainly.
2607
			foreach ($data as $k => $d)
2608
				$tag['after'] = strtr($tag['after'], array('$' . ($k + 1) => trim($d)));
2609
2610
			$open_tags[] = $tag;
2611
@@ 2614-2615 (lines=2) @@
2611
2612
			// Replace them out, $1, $2, $3, $4, etc.
2613
			$code = $tag['before'];
2614
			foreach ($data as $k => $d)
2615
				$code = strtr($code, array('$' . ($k + 1) => trim($d)));
2616
			$message = substr($message, 0, $pos) . "\n" . $code . "\n" . substr($message, $pos2 + 1);
2617
			$pos += strlen($code) - 1 + 2;
2618
		}