Code Duplication    Length = 9-9 lines in 2 locations

modules/infinite-scroll/infinity.php 2 locations

@@ 656-664 (lines=9) @@
653
		$orderby = isset( self::wp_query()->query_vars['orderby'] ) ?
654
			self::wp_query()->query_vars['orderby'] : '';
655
		$post_date = ( ! empty( $post->post_date ) ? $post->post_date : false );
656
		switch ( $orderby ) {
657
			case 'modified':
658
				return $post->post_modified;
659
			case 'date':
660
			case '':
661
				return $post_date;
662
			default:
663
				return false;
664
		}
665
	}
666
667
	/**
@@ 681-689 (lines=9) @@
678
679
		$orderby = isset( $query->query_vars['orderby'] ) ? $query->query_vars['orderby'] : '';
680
681
		switch ( $orderby ) {
682
			case 'modified':
683
				return 'post_modified';
684
			case 'date':
685
			case '':
686
				return 'post_date';
687
			default:
688
				return false;
689
		}
690
	}
691
692
	/**