Skip to content

Commit 6e18b9b

Browse files
committed
removed JSON_PRETTY_PRINT config by default
1 parent 5b14173 commit 6e18b9b

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/Generators/Jed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Jed extends Generator implements GeneratorInterface
88
{
99
public static $options = [
10-
'json' => JSON_PRETTY_PRINT,
10+
'json' => 0,
1111
];
1212

1313
/**

src/Generators/Json.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Json extends Generator implements GeneratorInterface
1010
use MultidimensionalArrayTrait;
1111

1212
public static $options = [
13-
'json' => JSON_PRETTY_PRINT,
13+
'json' => 0,
1414
'includeHeaders' => true,
1515
];
1616

src/Generators/JsonDictionary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class JsonDictionary extends Generator implements GeneratorInterface
1010
use DictionaryTrait;
1111

1212
public static $options = [
13-
'json' => JSON_PRETTY_PRINT,
13+
'json' => 0,
1414
'includeHeaders' => false,
1515
];
1616

tests/bootstrap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@
88

99
//Config
1010
Gettext\Translations::$insertDate = false;
11+
12+
Gettext\Generators\Jed::$options['json'] = JSON_PRETTY_PRINT;
13+
Gettext\Generators\Json::$options['json'] = JSON_PRETTY_PRINT;
14+
Gettext\Generators\JsonDictionary::$options['json'] = JSON_PRETTY_PRINT;

0 commit comments

Comments
 (0)