fix json pretty print

This commit is contained in:
Taras Machyshyn
2014-03-06 11:52:53 +02:00
parent 692ab6945f
commit 1d557c8f79
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ class Manager
$data= Utils\Json::encode($data);
}
return $this->putContents($paths, $data);
return $this->putContents($paths, $data, JSON_PRETTY_PRINT);
}
/**
-4
View File
@@ -14,10 +14,6 @@ class Json
*/
public static function encode($value, $options = 0, $depth = 512)
{
if ($options == 0) {
$options = JSON_PRETTY_PRINT;
}
if (version_compare(phpversion(), '5.5.0', '>=')) {
$json = json_encode($value, $options, $depth);
}