Code Duplication    Length = 4-4 lines in 2 locations

src/wp-includes/ms-load.php 1 location

@@ 178-181 (lines=4) @@
175
176
	$paths = array();
177
178
	while ( count( $path_segments ) ) {
179
		$paths[] = '/' . implode( '/', $path_segments ) . '/';
180
		array_pop( $path_segments );
181
	}
182
183
	$paths[] = '/';
184

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

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