Changeset View
Changeset View
Standalone View
Standalone View
src/parser/PhutilJSON.php
Context not available. | |||||
$max = 0; | $max = 0; | ||||
foreach ($object as $key => $val) { | foreach ($object as $key => $val) { | ||||
$ekey = $this->encodeFormattedValue((string)$key, 0); | $ekey = $this->encodeFormattedValue((string)$key, 0); | ||||
$max = max($max, strlen($ekey)); | $max = max($max, @strlen($ekey)); | ||||
$keys[] = $ekey; | $keys[] = $ekey; | ||||
$vals[] = $this->encodeFormattedValue($val, $depth + 1); | $vals[] = $this->encodeFormattedValue($val, $depth + 1); | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0