Code Duplication    Length = 5-7 lines in 2 locations

includes/calendars/views/default-calendar-list.php 2 locations

@@ 387-391 (lines=5) @@
384
			$large = $small = date_i18n( $calendar->date_format , $st );
385
			if ( ( $date_order['d'] !== false ) && ( $date_order['m'] !== false ) ) {
386
				if ( $date_order['m'] > $date_order['d'] ) {
387
					if ( $date_order['y'] !== false && $date_order['y'] > $date_order['m'] ) {
388
						$small = date_i18n( 'Y, d M', $st );
389
					} else {
390
						$small = date_i18n( 'd M Y', $st );
391
					}
392
				} else {
393
					if ( $date_order['y'] !== false && $date_order['y'] > $date_order['m'] ) {
394
						$small = date_i18n( 'Y, M d', $st );
@@ 392-398 (lines=7) @@
389
					} else {
390
						$small = date_i18n( 'd M Y', $st );
391
					}
392
				} else {
393
					if ( $date_order['y'] !== false && $date_order['y'] > $date_order['m'] ) {
394
						$small = date_i18n( 'Y, M d', $st );
395
					} else {
396
						$small = date_i18n( 'M d Y', $st );
397
					}
398
				}
399
			}
400
		} elseif ( ( $start->month == $end->month ) && ( $start->year == $end->year ) ) {
401
			// Start and end days on the same month.