Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 249-252 (lines=4) @@
246
				$path_segments = array_slice( $path_segments, 0, $segments );
247
			}
248
249
			while ( count( $path_segments ) ) {
250
				$paths[] = '/' . implode( '/', $path_segments ) . '/';
251
				array_pop( $path_segments );
252
			}
253
254
			$paths[] = '/';
255
		}

src/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