Code Duplication    Length = 9-9 lines in 2 locations

modules/infinite-scroll/infinity.php 2 locations

@@ 589-597 (lines=9) @@
586
		$orderby = isset( self::wp_query()->query_vars['orderby'] ) ?
587
			self::wp_query()->query_vars['orderby'] : '';
588
		$post_date = ( ! empty( $post->post_date ) ? $post->post_date : false );
589
		switch ( $orderby ) {
590
			case 'modified':
591
				return $post->post_modified;
592
			case 'date':
593
			case '':
594
				return $post_date;
595
			default:
596
				return false;
597
		}
598
	}
599
600
	/**
@@ 614-622 (lines=9) @@
611
612
		$orderby = isset( $query->query_vars['orderby'] ) ? $query->query_vars['orderby'] : '';
613
614
		switch ( $orderby ) {
615
			case 'modified':
616
				return 'post_modified';
617
			case 'date':
618
			case '':
619
				return 'post_date';
620
			default:
621
				return false;
622
		}
623
	}
624
625
	/**