From cf0bb27b32d827f18a8f8072c873dfeb23c7ebca Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 15 Oct 2008 16:21:05 +0000 Subject: phplint cleanup --- it_xml.class | 8 ++++---- itjs.class | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/it_xml.class b/it_xml.class index 381d4eb..5dd4ead 100644 --- a/it_xml.class +++ b/it_xml.class @@ -111,7 +111,7 @@ function from_xml($xmldata, $p) return empty($this->error); } -function consume($p) +function consume(/* $p */) { return false; } @@ -148,7 +148,7 @@ function _make_identifier($name) return $this->_p['lowercase'] ? strtolower($id) : $id; } -function start_element($parser, $name, $attrs) +function start_element($dummy_parser, $name, $attrs) { $name = $this->_p['prefix'] . $this->_make_identifier($name); @@ -170,7 +170,7 @@ function start_element($parser, $name, $attrs) } } -function end_element($parser, $name) +function end_element($dummy_parser, $name) { $name = $this->_make_identifier($name); @@ -197,7 +197,7 @@ function end_element($parser, $name) $this->_root = $node; } -function character_data($parser, $cdata) +function character_data($dummy_parser, $cdata) { if (isset($this->_stack[0]->val) || (trim($cdata) !== "")) $this->_stack[0]->val .= $cdata; diff --git a/itjs.class b/itjs.class index 6c98c27..40d65b8 100644 --- a/itjs.class +++ b/itjs.class @@ -56,7 +56,9 @@ function serialize($values, $envelope = false) } } - return it_untaint($result = $header . itjs::encode($values) . $footer); + $result = $header . itjs::encode($values) . $footer; + + return it_untaint($result); } /* -- cgit v1.2.3