Code Duplication    Length = 5-5 lines in 2 locations

src/Shim.php 2 locations

@@ 218-222 (lines=5) @@
215
	private static function calDaysInMonthFrench($year, $month) {
216
		if ($month == 13 && $year == 14 && self::shouldEmulateBug67976()) {
217
			return -2380948;
218
		} elseif ($year > 14) {
219
			$error_msg = PHP_VERSION_ID < 70200 ? 'invalid date.' : 'invalid date';
220
221
			return trigger_error($error_msg, E_USER_WARNING);
222
		} else {
223
			return self::calDaysInMonthCalendar(self::$french_calendar, $year, $month);
224
		}
225
	}
@@ 654-658 (lines=5) @@
651
	 */
652
	public static function jdToJewish($julian_day, $hebrew, $fl) {
653
		if ($hebrew) {
654
			if ($julian_day < 347998 || $julian_day > 4000075) {
655
				$error_msg = PHP_VERSION_ID < 70200 ? 'Year out of range (0-9999).' : 'Year out of range (0-9999)';
656
657
				return trigger_error($error_msg, E_USER_WARNING);
658
			}
659
660
			return self::$jewish_calendar->jdToHebrew(
661
				$julian_day,