Code Duplication    Length = 9-9 lines in 2 locations

modules/infinite-scroll/infinity.php 2 locations

@@ 615-623 (lines=9) @@
612
		$orderby = isset( self::wp_query()->query_vars['orderby'] ) ?
613
			self::wp_query()->query_vars['orderby'] : '';
614
		$post_date = ( ! empty( $post->post_date ) ? $post->post_date : false );
615
		switch ( $orderby ) {
616
			case 'modified':
617
				return $post->post_modified;
618
			case 'date':
619
			case '':
620
				return $post_date;
621
			default:
622
				return false;
623
		}
624
	}
625
626
	/**
@@ 640-648 (lines=9) @@
637
638
		$orderby = isset( $query->query_vars['orderby'] ) ? $query->query_vars['orderby'] : '';
639
640
		switch ( $orderby ) {
641
			case 'modified':
642
				return 'post_modified';
643
			case 'date':
644
			case '':
645
				return 'post_date';
646
			default:
647
				return false;
648
		}
649
	}
650
651
	/**