original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Verifies the path of the url and adds a slash
  at the end if there is no slash.
  
  @param array $urlParts
  @return string
docstring_tokens: Verifies the path of the url and adds a slash at the end if there is no slash .