Code Duplication    Length = 9-9 lines in 2 locations

modules/infinite-scroll/infinity.php 2 locations

@@ 595-603 (lines=9) @@
592
		$orderby = isset( self::wp_query()->query_vars['orderby'] ) ?
593
			self::wp_query()->query_vars['orderby'] : '';
594
		$post_date = ( ! empty( $post->post_date ) ? $post->post_date : false );
595
		switch ( $orderby ) {
596
			case 'modified':
597
				return $post->post_modified;
598
			case 'date':
599
			case '':
600
				return $post_date;
601
			default:
602
				return false;
603
		}
604
	}
605
606
	/**
@@ 620-628 (lines=9) @@
617
618
		$orderby = isset( $query->query_vars['orderby'] ) ? $query->query_vars['orderby'] : '';
619
620
		switch ( $orderby ) {
621
			case 'modified':
622
				return 'post_modified';
623
			case 'date':
624
			case '':
625
				return 'post_date';
626
			default:
627
				return false;
628
		}
629
	}
630
631
	/**