/var/www/hkosl.com/demo_google/application/vendor/gettext/languages/src/Exporter/Prettyjson.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
namespace Gettext\Languages\Exporter;

use 
Exception;

class 
Prettyjson extends Json
{
    
/**
     * @see Json::getEncodeOptions
     */
    
protected static function getEncodeOptions()
    {
        if (!(
defined('\JSON_PRETTY_PRINT') && defined('\JSON_UNESCAPED_SLASHES') && defined('\JSON_UNESCAPED_UNICODE'))) {
            throw new 
Exception('PHP 5.4 or later is required to export uncompressed JSON');
        }
        return \
JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE;
    }
    
/**
     * @see Exporter::getDescription
     */
    
public static function getDescription()
    {
        return 
'Build an uncompressed JSON-encoded file (PHP 5.4 or later is needed)';
    }
}