protected function verifyPath($urlParts)
    {
        if (isset($urlParts['path'])) {
            $path = $urlParts['path'];
        
            if (substr($path, -1) !== '/' && (strrpos($path, '.') === false || strrpos($path, '.') < strrpos($path, '/'))) {
                $path .= '/';
            }

            $urlParts['path'] = $path;
        }
        
        return $urlParts;
    }
protected function verifyPath($urlParts)
    {
        if (isset($urlParts['path'])) {
            $path = $urlParts['path'];
        
            if (substr($path, -1) !== '/' && (strrpos($path, '.') === false || strrpos($path, '.') < strrpos($path, '/'))) {
                $path .= '/';
            }

            $urlParts['path'] = $path;
        }
        
        return $urlParts;
    }
protected function verifyPath ( $ urlParts ) { if ( isset ( $ urlParts [ 'path' ] ) ) { $ path = $ urlParts [ 'path' ] ; if ( substr ( $ path , - 1 ) !== '/' && ( strrpos ( $ path , '.' ) === false || strrpos ( $ path , '.' ) < strrpos ( $ path , '/' ) ) ) { $ path .= '/' ; } $ urlParts [ 'path' ] = $ path ; } return $ urlParts ; }
Verifies the path of the url and adds a slash
at the end if there is no slash.

@param array $urlParts
@return string
Verifies the path of the url and adds a slash at the end if there is no slash .