Code Duplication    Length = 3-4 lines in 2 locations

languages/Language.php 2 locations

@@ 1715-1717 (lines=3) @@
1712
				# February
1713
				$dayOfYear += 28;
1714
				# Check if the year is leap
1715
				if ( $year % 400 == 0 || ( $year % 4 == 0 && $year % 100 > 0 ) ) {
1716
					$dayOfYear++;
1717
				}
1718
			} elseif ( $i == 8 || $i == 10 || $i == 1 || $i == 3 ) {
1719
				$dayOfYear += 30;
1720
			} else {
@@ 1738-1741 (lines=4) @@
1735
			$hebrewYear--;
1736
			# Add days since previous year's 1 September
1737
			$dayOfYear += 365;
1738
			if ( ( $year % 400 == 0 ) || ( $year % 100 != 0 && $year % 4 == 0 ) ) {
1739
				# Leap year
1740
				$dayOfYear++;
1741
			}
1742
			# Start of the new (previous) year
1743
			$start = self::hebrewYearStart( $hebrewYear );
1744
		} else {