Code Duplication    Length = 4-4 lines in 2 locations

wp-includes/class-wp-network.php 1 location

@@ 324-327 (lines=4) @@
321
				$path_segments = array_slice( $path_segments, 0, $segments );
322
			}
323
324
			while ( count( $path_segments ) ) {
325
				$paths[] = '/' . implode( '/', $path_segments ) . '/';
326
				array_pop( $path_segments );
327
			}
328
329
			$paths[] = '/';
330
		}

wp-includes/ms-load.php 1 location

@@ 189-192 (lines=4) @@
186
187
	$paths = array();
188
189
	while ( count( $path_segments ) ) {
190
		$paths[] = '/' . implode( '/', $path_segments ) . '/';
191
		array_pop( $path_segments );
192
	}
193
194
	$paths[] = '/';
195