Code Duplication    Length = 2-2 lines in 2 locations

sources/Subs.php 2 locations

@@ 468-469 (lines=2) @@
465
	{
466
		if (!isset($non_twelve_hour))
467
			$non_twelve_hour = trim(strftime('%p')) === '';
468
		if ($non_twelve_hour && strpos($str, '%p') !== false)
469
			$str = str_replace('%p', (strftime('%H', $time) < 12 ? $txt['time_am'] : $txt['time_pm']), $str);
470
471
		foreach (array('%a', '%A', '%b', '%B') as $token)
472
			if (strpos($str, $token) !== false)
@@ 482-483 (lines=2) @@
479
			if (strpos($str, $token) !== false)
480
				$str = str_replace($token, $txt[$text_label][(int) strftime($token === '%a' || $token === '%A' ? '%w' : '%m', $time)], $str);
481
482
		if (strpos($str, '%p') !== false)
483
			$str = str_replace('%p', (strftime('%H', $time) < 12 ? $txt['time_am'] : $txt['time_pm']), $str);
484
	}
485
486
	// Windows doesn't support %e; on some versions, strftime fails altogether if used, so let's prevent that.