Code Duplication    Length = 9-9 lines in 2 locations

modules/infinite-scroll/infinity.php 2 locations

@@ 564-572 (lines=9) @@
561
		$orderby = isset( self::wp_query()->query_vars['orderby'] ) ?
562
			self::wp_query()->query_vars['orderby'] : '';
563
		$post_date = ( ! empty( $post->post_date ) ? $post->post_date : false );
564
		switch ( $orderby ) {
565
			case 'modified':
566
				return $post->post_modified;
567
			case 'date':
568
			case '':
569
				return $post_date;
570
			default:
571
				return false;
572
		}
573
	}
574
575
	/**
@@ 589-597 (lines=9) @@
586
587
		$orderby = isset( $query->query_vars['orderby'] ) ? $query->query_vars['orderby'] : '';
588
589
		switch ( $orderby ) {
590
			case 'modified':
591
				return 'post_modified';
592
			case 'date':
593
			case '':
594
				return 'post_date';
595
			default:
596
				return false;
597
		}
598
	}
599
600
	/**