Code Duplication    Length = 9-9 lines in 2 locations

modules/infinite-scroll/infinity.php 2 locations

@@ 580-588 (lines=9) @@
577
		$orderby = isset( self::wp_query()->query_vars['orderby'] ) ?
578
			self::wp_query()->query_vars['orderby'] : '';
579
		$post_date = ( ! empty( $post->post_date ) ? $post->post_date : false );
580
		switch ( $orderby ) {
581
			case 'modified':
582
				return $post->post_modified;
583
			case 'date':
584
			case '':
585
				return $post_date;
586
			default:
587
				return false;
588
		}
589
	}
590
591
	/**
@@ 605-613 (lines=9) @@
602
603
		$orderby = isset( $query->query_vars['orderby'] ) ? $query->query_vars['orderby'] : '';
604
605
		switch ( $orderby ) {
606
			case 'modified':
607
				return 'post_modified';
608
			case 'date':
609
			case '':
610
				return 'post_date';
611
			default:
612
				return false;
613
		}
614
	}
615
616
	/**