Code Duplication    Length = 2-2 lines in 3 locations

Sources/Subs.php 3 locations

@@ 2522-2523 (lines=2) @@
2519
				$tag['validate']($tag, $data, $disabled, $params);
2520
2521
			$code = $tag['content'];
2522
			foreach ($data as $k => $d)
2523
				$code = strtr($code, array('$' . ($k + 1) => trim($d)));
2524
			$message = substr($message, 0, $pos) . "\n" . $code . "\n" . substr($message, $pos3 + 3 + $tag_strlen);
2525
			$pos += strlen($code) - 1 + 2;
2526
		}
@@ 2540-2541 (lines=2) @@
2537
				$tag['validate']($tag, $data, $disabled, $params);
2538
2539
			// Fix after, for disabled code mainly.
2540
			foreach ($data as $k => $d)
2541
				$tag['after'] = strtr($tag['after'], array('$' . ($k + 1) => trim($d)));
2542
2543
			$open_tags[] = $tag;
2544
@@ 2547-2548 (lines=2) @@
2544
2545
			// Replace them out, $1, $2, $3, $4, etc.
2546
			$code = $tag['before'];
2547
			foreach ($data as $k => $d)
2548
				$code = strtr($code, array('$' . ($k + 1) => trim($d)));
2549
			$message = substr($message, 0, $pos) . "\n" . $code . "\n" . substr($message, $pos2 + 1);
2550
			$pos += strlen($code) - 1 + 2;
2551
		}