PHP 8.2.31
Preview: Decoder.php Size: 897 B
/home/nshryvcy/taramarriagebureau.com/wp-content/plugins/backuply/lib/Curl/Decoder.php

<?php

namespace Curl;

class Decoder
{
    /**
     * Decode JSON
     *
     * @access public
     * @param  $json
     * @param  $assoc
     * @param  $depth
     * @param  $options
     */
    public static function decodeJson()
    {
        $args = func_get_args();
        $response = call_user_func_array('json_decode', $args);
        if ($response === null) {
            $response = $args['0'];
        }
        return $response;
    }

    /**
     * Decode XML
     *
     * @access public
     * @param  $data
     * @param  $class_name
     * @param  $options
     * @param  $ns
     * @param  $is_prefix
     */
    public static function decodeXml()
    {
        $args = func_get_args();
        $response = @call_user_func_array('simplexml_load_string', $args);
        if ($response === false) {
            $response = $args['0'];
        }
        return $response;
    }
}

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
3.54 KB lrw-r--r-- 2025-04-30 03:18:11
Edit Download
5.55 KB lrw-r--r-- 2025-04-30 03:18:11
Edit Download
49.86 KB lrw-r--r-- 2025-04-30 03:18:11
Edit Download
897 B lrw-r--r-- 2025-04-30 03:18:11
Edit Download
681 B lrw-r--r-- 2025-04-30 03:18:11
Edit Download
29.41 KB lrw-r--r-- 2025-04-30 03:18:11
Edit Download
1.63 KB lrw-r--r-- 2025-04-30 03:18:11
Edit Download
11.39 KB lrw-r--r-- 2025-04-30 03:18:11
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).