Code Duplication    Length = 9-9 lines in 2 locations

modules/infinite-scroll/infinity.php 2 locations

@@ 547-555 (lines=9) @@
544
		$orderby = isset( self::wp_query()->query_vars['orderby'] ) ?
545
			self::wp_query()->query_vars['orderby'] : '';
546
		$post_date = ( ! empty( $post->post_date ) ? $post->post_date : false );
547
		switch ( $orderby ) {
548
			case 'modified':
549
				return $post->post_modified;
550
			case 'date':
551
			case '':
552
				return $post_date;
553
			default:
554
				return false;
555
		}
556
	}
557
558
	/**
@@ 572-580 (lines=9) @@
569
570
		$orderby = isset( $query->query_vars['orderby'] ) ? $query->query_vars['orderby'] : '';
571
572
		switch ( $orderby ) {
573
			case 'modified':
574
				return 'post_modified';
575
			case 'date':
576
			case '':
577
				return 'post_date';
578
			default:
579
				return false;
580
		}
581
	}
582
583
	/**