summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2008-10-15 16:21:05 +0000
committerUrban Müller2008-10-15 16:21:05 +0000
commitcf0bb27b32d827f18a8f8072c873dfeb23c7ebca (patch)
treef791f586b51723b2621bd20cdf49af613a298acd
parent5db02f8d8ced2403e69a4901a0a15386d19a13b5 (diff)
downloaditools-cf0bb27b32d827f18a8f8072c873dfeb23c7ebca.tar.gz
itools-cf0bb27b32d827f18a8f8072c873dfeb23c7ebca.tar.bz2
itools-cf0bb27b32d827f18a8f8072c873dfeb23c7ebca.zip
phplint cleanup
-rw-r--r--it_xml.class8
-rw-r--r--itjs.class4
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);
}
/*