Permalink
Browse files

improve docblock with possible values and default

  • Loading branch information...
1 parent b5bac5b commit 2f7989485241794d59300883230ba62547c57add @ceeram ceeram committed Mar 13, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Utility/Xml.php
View
@@ -150,7 +150,7 @@ protected static function _loadXml($input, $options) {
* ### Options
*
* - `format` If create childs ('tags') or attributes ('attribute').
- * - `formatOutput` Returns formatted Xml
+ * - `formatOutput` Returns formatted Xml when set to `true`. Defaults to `false`
* - `version` Version of XML document. Default is 1.0.
* - `encoding` Encoding of XML document. If null remove from XML header. Default is the some of application.
* - `return` If return object of SimpleXMLElement ('simplexml') or DOMDocument ('domdocument'). Default is SimpleXMLElement.
@@ -204,7 +204,7 @@ public static function fromArray($input, $options = array()) {
$options = array_merge($defaults, $options);
$dom = new DOMDocument($options['version'], $options['encoding']);
- if ($options['formatOutput'] === true) {
+ if ($options['formatOutput']) {
$dom->formatOutput = true;
}
self::_fromArray($dom, $dom, $input, $options['format']);

0 comments on commit 2f79894

Please sign in to comment.