Code Duplication    Length = 6-6 lines in 2 locations

wp-includes/class-wp-walker.php 2 locations

@@ 308-313 (lines=6) @@
305
306
		// flat display
307
		if ( -1 == $max_depth ) {
308
			if ( !empty($args[0]['reverse_top_level']) ) {
309
				$elements = array_reverse( $elements );
310
				$oldstart = $start;
311
				$start = $total_top - $end;
312
				$end = $total_top - $oldstart;
313
			}
314
315
			$empty_array = array();
316
			foreach ( $elements as $e ) {
@@ 347-352 (lines=6) @@
344
		else
345
			$end = $total_top;
346
347
		if ( !empty($args[0]['reverse_top_level']) ) {
348
			$top_level_elements = array_reverse( $top_level_elements );
349
			$oldstart = $start;
350
			$start = $total_top - $end;
351
			$end = $total_top - $oldstart;
352
		}
353
		if ( !empty($args[0]['reverse_children']) ) {
354
			foreach ( $children_elements as $parent => $children )
355
				$children_elements[$parent] = array_reverse( $children );