Code Duplication    Length = 2-2 lines in 3 locations

Sources/Subs.php 3 locations

@@ 2331-2332 (lines=2) @@
2328
				$tag['validate']($tag, $data, $disabled);
2329
2330
			$code = $tag['content'];
2331
			foreach ($data as $k => $d)
2332
				$code = strtr($code, array('$' . ($k + 1) => trim($d)));
2333
			$message = substr($message, 0, $pos) . "\n" . $code . "\n" . substr($message, $pos3 + 3 + $tag_strlen);
2334
			$pos += strlen($code) - 1 + 2;
2335
		}
@@ 2349-2350 (lines=2) @@
2346
				$tag['validate']($tag, $data, $disabled);
2347
2348
			// Fix after, for disabled code mainly.
2349
			foreach ($data as $k => $d)
2350
				$tag['after'] = strtr($tag['after'], array('$' . ($k + 1) => trim($d)));
2351
2352
			$open_tags[] = $tag;
2353
@@ 2356-2357 (lines=2) @@
2353
2354
			// Replace them out, $1, $2, $3, $4, etc.
2355
			$code = $tag['before'];
2356
			foreach ($data as $k => $d)
2357
				$code = strtr($code, array('$' . ($k + 1) => trim($d)));
2358
			$message = substr($message, 0, $pos) . "\n" . $code . "\n" . substr($message, $pos2 + 1);
2359
			$pos += strlen($code) - 1 + 2;
2360
		}