Code Duplication    Length = 3-4 lines in 2 locations

languages/Language.php 2 locations

@@ 1697-1699 (lines=3) @@
1694
				# February
1695
				$dayOfYear += 28;
1696
				# Check if the year is leap
1697
				if ( $year % 400 == 0 || ( $year % 4 == 0 && $year % 100 > 0 ) ) {
1698
					$dayOfYear++;
1699
				}
1700
			} elseif ( $i == 8 || $i == 10 || $i == 1 || $i == 3 ) {
1701
				$dayOfYear += 30;
1702
			} else {
@@ 1720-1723 (lines=4) @@
1717
			$hebrewYear--;
1718
			# Add days since previous year's 1 September
1719
			$dayOfYear += 365;
1720
			if ( ( $year % 400 == 0 ) || ( $year % 100 != 0 && $year % 4 == 0 ) ) {
1721
				# Leap year
1722
				$dayOfYear++;
1723
			}
1724
			# Start of the new (previous) year
1725
			$start = self::hebrewYearStart( $hebrewYear );
1726
		} else {