Code Duplication    Length = 9-9 lines in 2 locations

modules/infinite-scroll/infinity.php 2 locations

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