original_string: protected function getUrlOptionsFromConfig(
          $urlConfig,
          array $defaultOptions
      ) {
          $urlOptions = (
              is_array($urlConfig) &&
              isset($urlConfig[2]) &&
              is_array($urlConfig[2])
          )
              ? $urlConfig[2]
              : [];
  
          return array_merge(
              $defaultOptions,
              $urlOptions
          );
      }
code: protected function getUrlOptionsFromConfig(
          $urlConfig,
          array $defaultOptions
      ) {
          $urlOptions = (
              is_array($urlConfig) &&
              isset($urlConfig[2]) &&
              is_array($urlConfig[2])
          )
              ? $urlConfig[2]
              : [];
  
          return array_merge(
              $defaultOptions,
              $urlOptions
          );
      }
code_tokens: protected function getUrlOptionsFromConfig ( $ urlConfig , array $ defaultOptions ) { $ urlOptions = ( is_array ( $ urlConfig ) && isset ( $ urlConfig [ 2 ] ) && is_array ( $ urlConfig [ 2 ] ) ) ? $ urlConfig [ 2 ] : [ ] ; return array_merge ( $ defaultOptions , $ urlOptions ) ; }
docstring: Get url options
  
  @param mixed $urlConfig      Url configuration
  @param array $defaultOptions Default options
  
  @return string[] Set of HTTP Codes
docstring_tokens: Get url options