mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-04 05:07:55 +02:00
Remove trailing whitespace.
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
class HTMLPurifier_VarParser_Flexible extends HTMLPurifier_VarParser
|
||||
{
|
||||
|
||||
|
||||
protected function parseImplementation($var, $type, $allow_null) {
|
||||
if ($allow_null && $var === null) return null;
|
||||
switch ($type) {
|
||||
@@ -90,5 +90,5 @@ class HTMLPurifier_VarParser_Flexible extends HTMLPurifier_VarParser
|
||||
}
|
||||
$this->errorGeneric($var, $type);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -7,11 +7,11 @@
|
||||
*/
|
||||
class HTMLPurifier_VarParser_Native extends HTMLPurifier_VarParser
|
||||
{
|
||||
|
||||
|
||||
protected function parseImplementation($var, $type, $allow_null) {
|
||||
return $this->evalExpression($var);
|
||||
}
|
||||
|
||||
|
||||
protected function evalExpression($expr) {
|
||||
$var = null;
|
||||
$result = eval("\$var = $expr;");
|
||||
@@ -20,6 +20,6 @@ class HTMLPurifier_VarParser_Native extends HTMLPurifier_VarParser
|
||||
}
|
||||
return $var;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user