HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/dodolodge-net/wp-content/plugins/wp-migrate-db/class/Common/Util/ZipAndEncode.php
<?php

namespace DeliciousBrains\WPMDB\Common\Util;

/**
 * Class ZipAndEncode
 *
 * @package DeliciousBrains\WPMDB\Common\Util
 */
class ZipAndEncode
{

    /**
     * @param $string
     *
     * @return string
     */
    public static function encode($string)
    {
        if (!function_exists('gzencode')) {
            return $string;
        }

        return base64_encode(gzencode($string));
    }

    /**
     * @param $string
     *
     * @return string
     */
    public static function decode($string)
    {
        if (!function_exists('gzdecode')) {
            return $string;
        }

        return gzdecode(base64_decode($string));
    }

}