File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ use HJSON\HJSONStringifier;
4343$parser = new HJSONParser();
4444$obj = $parser->parse(hjsonText);
4545
46- $stringifier = new HJSONStringifier;
46+ $stringifier = new HJSONStringifier() ;
4747$text = $stringifier->stringify($obj);
4848```
4949
@@ -79,8 +79,8 @@ This method produces Hjson text from a value.
7979You can modify a Hjson file and keep the whitespace & comments intact. This is useful if an app updates its config file.
8080
8181```
82- $parser = new HJSONParser;
83- $stringifier = new HJSONStringifier;
82+ $parser = new HJSONParser() ;
83+ $stringifier = new HJSONStringifier() ;
8484
8585$text = "{
8686 # specify rate in requests/second (because comments are helpful!)
Original file line number Diff line number Diff line change @@ -211,12 +211,12 @@ private function object($withoutBraces = false)
211211 {
212212 // Parse an object value.
213213 $ key = null ;
214- $ object = new \stdClass ;
214+ $ object = new \stdClass () ;
215215 $ kw = null ;
216216 $ wat = null ;
217217 if ($ this ->keepWsc ) {
218- $ kw = new \stdClass ;
219- $ kw ->c = new \stdClass ;
218+ $ kw = new \stdClass () ;
219+ $ kw ->c = new \stdClass () ;
220220 $ kw ->o = [];
221221 $ object ->__WSC__ = $ kw ;
222222 if ($ withoutBraces ) {
Original file line number Diff line number Diff line change @@ -155,6 +155,6 @@ public function testAll()
155155 }
156156}
157157
158- $ tester = new HJSONParserTest ;
158+ $ tester = new HJSONParserTest () ;
159159$ tester ->setUp ();
160160$ tester ->testAll ();
You can’t perform that action at this time.
0 commit comments