Code Duplication    Length = 2-2 lines in 3 locations

Sources/Subs.php 3 locations

@@ 2494-2495 (lines=2) @@
2491
				$tag['validate']($tag, $data, $disabled, $params);
2492
2493
			$code = $tag['content'];
2494
			foreach ($data as $k => $d)
2495
				$code = strtr($code, array('$' . ($k + 1) => trim($d)));
2496
			$message = substr($message, 0, $pos) . "\n" . $code . "\n" . substr($message, $pos3 + 3 + $tag_strlen);
2497
			$pos += strlen($code) - 1 + 2;
2498
		}
@@ 2512-2513 (lines=2) @@
2509
				$tag['validate']($tag, $data, $disabled, $params);
2510
2511
			// Fix after, for disabled code mainly.
2512
			foreach ($data as $k => $d)
2513
				$tag['after'] = strtr($tag['after'], array('$' . ($k + 1) => trim($d)));
2514
2515
			$open_tags[] = $tag;
2516
@@ 2519-2520 (lines=2) @@
2516
2517
			// Replace them out, $1, $2, $3, $4, etc.
2518
			$code = $tag['before'];
2519
			foreach ($data as $k => $d)
2520
				$code = strtr($code, array('$' . ($k + 1) => trim($d)));
2521
			$message = substr($message, 0, $pos) . "\n" . $code . "\n" . substr($message, $pos2 + 1);
2522
			$pos += strlen($code) - 1 + 2;
2523
		}