fix json pretty print
This commit is contained in:
@@ -207,7 +207,7 @@ class Manager
|
||||
$data= Utils\Json::encode($data);
|
||||
}
|
||||
|
||||
return $this->putContents($paths, $data);
|
||||
return $this->putContents($paths, $data, JSON_PRETTY_PRINT);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user