Code Duplication    Length = 6-6 lines in 2 locations

modules/custom-post-types/nova.php 2 locations

@@ 363-368 (lines=6) @@
360
		$term_order = get_option( 'nova_menu_order', array() );
361
362
		$return = array();
363
		foreach ( $term_order as $term_id ) {
364
			if ( isset( $grouped_by_term["$term_id"] ) ) {
365
				$return = array_merge( $return, $grouped_by_term["$term_id"] );
366
				unset( $grouped_by_term["$term_id"] );
367
			}
368
		}
369
370
		foreach ( $grouped_by_term as $term_id => $posts ) {
371
			$return = array_merge( $return, $posts );
@@ 957-962 (lines=6) @@
954
		$term_order = get_option( 'nova_menu_order', array() );
955
956
		$return = array();
957
		foreach ( $term_order as $term_id ) {
958
			if ( isset( $terms_by_id["$term_id"] ) ) {
959
				$return[] = $terms_by_id["$term_id"];
960
				unset( $terms_by_id["$term_id"] );
961
			}
962
		}
963
964
		foreach ( $terms_by_id as $term_id => $term ) {
965
			$return[] = $term;