protected function normalizePath($path)
    {
        $path = Util\Path::normalize($path);

        if (0 !== strpos($path, $this->directory)) {
            throw new \OutOfBoundsException(sprintf('The path "%s" is out of the filesystem.', $path));
        }

        return $path;
    }
protected function normalizePath($path)
    {
        $path = Util\Path::normalize($path);

        if (0 !== strpos($path, $this->directory)) {
            throw new \OutOfBoundsException(sprintf('The path "%s" is out of the filesystem.', $path));
        }

        return $path;
    }
protected function normalizePath ( $ path ) { $ path = Util \ Path :: normalize ( $ path ) ; if ( 0 !== strpos ( $ path , $ this -> directory ) ) { throw new \ OutOfBoundsException ( sprintf ( 'The path "%s" is out of the filesystem.' , $ path ) ) ; } return $ path ; }
Normalizes the given path.

@param string $path

@return string
@throws \OutOfBoundsException If the computed path is out of the
directory
Normalizes the given path .