protected function clean($path)
    {
        $path = rtrim($path, ' /\\');

        $path = str_replace(['/', '\\'], DIRECTORY_SEPARATOR, $path);

        return $path;
    }
protected function clean($path)
    {
        $path = rtrim($path, ' /\\');

        $path = str_replace(['/', '\\'], DIRECTORY_SEPARATOR, $path);

        return $path;
    }
protected function clean ( $ path ) { $ path = rtrim ( $ path , ' /\\' ) ; $ path = str_replace ( [ '/' , '\\' ] , DIRECTORY_SEPARATOR , $ path ) ; return $ path ; }
Clean path and remove dots.

@param   string $path A given path to parse.

@return  string  Cleaned path.

@since  2.0
Clean path and remove dots .