summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <git@evanprodromou.name>2009-01-13 11:47:01 -0500
committerEvan Prodromou <git@evanprodromou.name>2009-01-13 11:47:01 -0500
commit10fcbe9da3456d7f7c07bd1192051602bd8b0762 (patch)
tree3b19d28d6a4691cfaa109e93f9b971ae11744fe7
parentbbb32dd2f6567bbbfc16db542f631dcc688020fe (diff)
Make XMLOutputter work with phpcs
A couple of small changes to comply with code standards. Also, note that the second param of element() and elementStart() can be a string.
-rw-r--r--lib/xmloutputter.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/xmloutputter.php b/lib/xmloutputter.php
index 9a7d12e4c..5bbd35627 100644
--- a/lib/xmloutputter.php
+++ b/lib/xmloutputter.php
@@ -63,8 +63,8 @@ class XMLOutputter
*
* Initializes the wrapped XMLWriter.
*
- * @param $output URL for outputting, defaults to stdout
- * @param $indent Whether to indent output, default true
+ * @param string $output URL for outputting, defaults to stdout
+ * @param boolean $indent Whether to indent output, default true
*/
function __construct($output='php://output', $indent=true)
@@ -119,6 +119,9 @@ class XMLOutputter
* raw output, use elementStart() and elementEnd() with a call
* to raw() in the middle.
*
+ * If $attrs is a string instead of an array, it will be treated
+ * as the class attribute of the element.
+ *
* @param string $tag Element type or tagname
* @param array $attrs Array of element attributes, as
* key-value pairs
@@ -142,6 +145,9 @@ class XMLOutputter
* Mostly used for when an element has content that's
* not a simple string.
*
+ * If $attrs is a string instead of an array, it will be treated
+ * as the class attribute of the element.
+ *
* @param string $tag Element type or tagname
* @param array $attrs Array of element attributes
*