Debugger/src/SourceLocationResolver.php
private function searchPrefixes($path)
    {
        $dirname = dirname($path);
        $directoryParts = explode(DIRECTORY_SEPARATOR, $dirname);
        $directories = [];
        while ($directoryParts) {
            $directories[] = implode(DIRECTORY_SEPARATOR, $directoryParts);
            array_shift($directoryParts);
        }
        return $directories;
    }
private function searchPrefixes($path)
    {
        $dirname = dirname($path);
        $directoryParts = explode(DIRECTORY_SEPARATOR, $dirname);
        $directories = [];
        while ($directoryParts) {
            $directories[] = implode(DIRECTORY_SEPARATOR, $directoryParts);
            array_shift($directoryParts);
        }
        return $directories;
    }
private function searchPrefixes ( $ path ) { $ dirname = dirname ( $ path ) ; $ directoryParts = explode ( DIRECTORY_SEPARATOR , $ dirname ) ; $ directories = [ ] ; while ( $ directoryParts ) { $ directories [ ] = implode ( DIRECTORY_SEPARATOR , $ directoryParts ) ; array_shift ( $ directoryParts ) ; } return $ directories ; }
Returns an array of relative paths for this file by recursively removing
each leading directory.

@param string $path The source path
@return string[]
Returns an array of relative paths for this file by recursively removing each leading directory .