Code Duplication    Length = 9-9 lines in 2 locations

modules/infinite-scroll/infinity.php 2 locations

@@ 631-639 (lines=9) @@
628
		$orderby = isset( self::wp_query()->query_vars['orderby'] ) ?
629
			self::wp_query()->query_vars['orderby'] : '';
630
		$post_date = ( ! empty( $post->post_date ) ? $post->post_date : false );
631
		switch ( $orderby ) {
632
			case 'modified':
633
				return $post->post_modified;
634
			case 'date':
635
			case '':
636
				return $post_date;
637
			default:
638
				return false;
639
		}
640
	}
641
642
	/**
@@ 656-664 (lines=9) @@
653
654
		$orderby = isset( $query->query_vars['orderby'] ) ? $query->query_vars['orderby'] : '';
655
656
		switch ( $orderby ) {
657
			case 'modified':
658
				return 'post_modified';
659
			case 'date':
660
			case '':
661
				return 'post_date';
662
			default:
663
				return false;
664
		}
665
	}
666
667
	/**