Code Duplication    Length = 9-9 lines in 2 locations

modules/infinite-scroll/infinity.php 2 locations

@@ 640-648 (lines=9) @@
637
		$orderby = isset( self::wp_query()->query_vars['orderby'] ) ?
638
			self::wp_query()->query_vars['orderby'] : '';
639
		$post_date = ( ! empty( $post->post_date ) ? $post->post_date : false );
640
		switch ( $orderby ) {
641
			case 'modified':
642
				return $post->post_modified;
643
			case 'date':
644
			case '':
645
				return $post_date;
646
			default:
647
				return false;
648
		}
649
	}
650
651
	/**
@@ 665-673 (lines=9) @@
662
663
		$orderby = isset( $query->query_vars['orderby'] ) ? $query->query_vars['orderby'] : '';
664
665
		switch ( $orderby ) {
666
			case 'modified':
667
				return 'post_modified';
668
			case 'date':
669
			case '':
670
				return 'post_date';
671
			default:
672
				return false;
673
		}
674
	}
675
676
	/**