From 2f7989485241794d59300883230ba62547c57add Mon Sep 17 00:00:00 2001 From: Ceeram Date: Wed, 13 Mar 2013 14:07:47 +0100 Subject: [PATCH] improve docblock with possible values and default --- lib/Cake/Utility/Xml.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Utility/Xml.php b/lib/Cake/Utility/Xml.php index d43c02dd4..490f0e314 100644 --- a/lib/Cake/Utility/Xml.php +++ b/lib/Cake/Utility/Xml.php @@ -150,7 +150,7 @@ class Xml { * ### 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 @@ class Xml { $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']);