protected static function reportUrl($type)
    {
        // Strip namespace if present
        if ($postfix = strrchr($type, '\\')) {
            $type = substr($postfix, 1);
        }
        if (substr($type, 0, strlen('EasyPost')) == 'EasyPost') {
            $type = substr($type, strlen('EasyPost'));
        }

        $type = substr($type, 0, 1) . preg_replace('/([A-Z])/', '_$1', substr($type, 1)); // Camel -> snake

        $type = strtolower($type);
        $type = str_replace('_report', '', $type);
        $name = urlencode($type);

        return "/reports/{$name}/";
    }
protected static function reportUrl($type)
    {
        // Strip namespace if present
        if ($postfix = strrchr($type, '\\')) {
            $type = substr($postfix, 1);
        }
        if (substr($type, 0, strlen('EasyPost')) == 'EasyPost') {
            $type = substr($type, strlen('EasyPost'));
        }

        $type = substr($type, 0, 1) . preg_replace('/([A-Z])/', '_$1', substr($type, 1)); // Camel -> snake

        $type = strtolower($type);
        $type = str_replace('_report', '', $type);
        $name = urlencode($type);

        return "/reports/{$name}/";
    }
protected static function reportUrl ( $ type ) { // Strip namespace if present if ( $ postfix = strrchr ( $ type , '\\' ) ) { $ type = substr ( $ postfix , 1 ) ; } if ( substr ( $ type , 0 , strlen ( 'EasyPost' ) ) == 'EasyPost' ) { $ type = substr ( $ type , strlen ( 'EasyPost' ) ) ; } $ type = substr ( $ type , 0 , 1 ) . preg_replace ( '/([A-Z])/' , '_$1' , substr ( $ type , 1 ) ) ; // Camel -> snake $ type = strtolower ( $ type ) ; $ type = str_replace ( '_report' , '' , $ type ) ; $ name = urlencode ( $ type ) ; return "/reports/{$name}/" ; }
generate report url format

@param string $type
@return mixed
@throws \EasyPost\Error
generate report url format