FormatJson: cleanup after PHP 5.5 support removal
authorKevin Israel <pleasestand@live.com>
Sat, 9 Jun 2018 13:06:02 +0000 (09:06 -0400)
committerKevin Israel <pleasestand@live.com>
Sat, 9 Jun 2018 13:06:02 +0000 (09:06 -0400)
commit381858ab5204ce21249b9aca126a142d5755b8b1
tree3acd7232b3e58949916144d4f4c261fae512e657
parent7bbcff92f95e5ca21eb2b7a413f249966c507589
FormatJson: cleanup after PHP 5.5 support removal

* Use PHP 5.6 constant expression support in definition of ALL_OK.
* Remove one level of nesting in encode(). Follows up I801eaffc.
* Update HTML5 section number in doc comment for XMLMETA_OK.
* Made other minor doc comment fixes, such as capitalizing "JSON".
* Not done: changing $badChars and $badCharsEscaped to constants.
  This will have to wait until HHVM 3.18 support is dropped.

Change-Id: I06413dfe0fedddfd20d3e375eadd9daad6d6230e
includes/json/FormatJson.php