Code Duplication    Length = 5-7 lines in 2 locations

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

@@ 423-427 (lines=5) @@
420
			$large = $small = date_i18n( $calendar->date_format , $st );
421
			if ( ( $date_order['d'] !== false ) && ( $date_order['m'] !== false ) ) {
422
				if ( $date_order['m'] > $date_order['d'] ) {
423
					if ( $date_order['y'] !== false && $date_order['y'] > $date_order['m'] ) {
424
						$small = date_i18n( 'Y, d M', $st );
425
					} else {
426
						$small = date_i18n( 'd M Y', $st );
427
					}
428
				} else {
429
					if ( $date_order['y'] !== false && $date_order['y'] > $date_order['m'] ) {
430
						$small = date_i18n( 'Y, M d', $st );
@@ 428-434 (lines=7) @@
425
					} else {
426
						$small = date_i18n( 'd M Y', $st );
427
					}
428
				} else {
429
					if ( $date_order['y'] !== false && $date_order['y'] > $date_order['m'] ) {
430
						$small = date_i18n( 'Y, M d', $st );
431
					} else {
432
						$small = date_i18n( 'M d Y', $st );
433
					}
434
				}
435
			}
436
		} elseif ( ( $start->month == $end->month ) && ( $start->year == $end->year ) ) {
437
			// Start and end days on the same month.