protected function _getQRCodeUrl($title, $name, $secret)
    {
        if (empty($title)) {
            return 'otpauth://totp/'.rawurlencode($name).'?secret='.$secret;
        } else {
            return 'otpauth://totp/'.rawurlencode($title).':'.rawurlencode($name).'?secret='.$secret.'&issuer='.rawurlencode($title);
        }        
    }
protected function _getQRCodeUrl($title, $name, $secret)
    {
        if (empty($title)) {
            return 'otpauth://totp/'.rawurlencode($name).'?secret='.$secret;
        } else {
            return 'otpauth://totp/'.rawurlencode($title).':'.rawurlencode($name).'?secret='.$secret.'&issuer='.rawurlencode($title);
        }        
    }
protected function _getQRCodeUrl ( $ title , $ name , $ secret ) { if ( empty ( $ title ) ) { return 'otpauth://totp/' . rawurlencode ( $ name ) . '?secret=' . $ secret ; } else { return 'otpauth://totp/' . rawurlencode ( $ title ) . ':' . rawurlencode ( $ name ) . '?secret=' . $ secret . '&issuer=' . rawurlencode ( $ title ) ; } }
Get otpauth url

@param $title
@param $name
@param $secret

@return string
Get otpauth url