Code Duplication    Length = 3-4 lines in 2 locations

languages/Language.php 2 locations

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