Code Duplication    Length = 9-9 lines in 2 locations

modules/infinite-scroll/infinity.php 2 locations

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