MDL-44630: Review changes

* Fixing coding style violations.
* Fixing DOMDocument warning.