Code Duplication    Length = 2-2 lines in 3 locations

Sources/Subs.php 3 locations

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