src/Visithor/Generator/UrlGenerator.php
protected function getUrlHTTPCodesFromConfig(
        $urlConfig,
        array $defaultHTTPCodes
    ) {
        $HTTPCodes = (
            is_array($urlConfig) &&
            isset($urlConfig[1]) &&
            !empty($urlConfig[1])
        )
            ? $urlConfig[1]
            : $defaultHTTPCodes;

        return is_array($HTTPCodes)
            ? $HTTPCodes
            : [$HTTPCodes];
    }
protected function getUrlHTTPCodesFromConfig(
        $urlConfig,
        array $defaultHTTPCodes
    ) {
        $HTTPCodes = (
            is_array($urlConfig) &&
            isset($urlConfig[1]) &&
            !empty($urlConfig[1])
        )
            ? $urlConfig[1]
            : $defaultHTTPCodes;

        return is_array($HTTPCodes)
            ? $HTTPCodes
            : [$HTTPCodes];
    }
protected function getUrlHTTPCodesFromConfig ( $ urlConfig , array $ defaultHTTPCodes ) { $ HTTPCodes = ( is_array ( $ urlConfig ) && isset ( $ urlConfig [ 1 ] ) && ! empty ( $ urlConfig [ 1 ] ) ) ? $ urlConfig [ 1 ] : $ defaultHTTPCodes ; return is_array ( $ HTTPCodes ) ? $ HTTPCodes : [ $ HTTPCodes ] ; }
Get url HTTP Codes given its configuration

@param mixed    $urlConfig        Url configuration
@param string[] $defaultHTTPCodes Array of HTTP Codes

@return string[] Set of HTTP Codes
Get url HTTP Codes given its configuration