Code Duplication    Length = 9-9 lines in 2 locations

modules/infinite-scroll/infinity.php 2 locations

@@ 649-657 (lines=9) @@
646
		$orderby = isset( self::wp_query()->query_vars['orderby'] ) ?
647
			self::wp_query()->query_vars['orderby'] : '';
648
		$post_date = ( ! empty( $post->post_date ) ? $post->post_date : false );
649
		switch ( $orderby ) {
650
			case 'modified':
651
				return $post->post_modified;
652
			case 'date':
653
			case '':
654
				return $post_date;
655
			default:
656
				return false;
657
		}
658
	}
659
660
	/**
@@ 674-682 (lines=9) @@
671
672
		$orderby = isset( $query->query_vars['orderby'] ) ? $query->query_vars['orderby'] : '';
673
674
		switch ( $orderby ) {
675
			case 'modified':
676
				return 'post_modified';
677
			case 'date':
678
			case '':
679
				return 'post_date';
680
			default:
681
				return false;
682
		}
683
	}
684
685
	/**