Fix linting

This commit is contained in:
Nigel Sheldon 2020-11-21 15:51:56 +01:00
commit 1614145b18
262 changed files with 45324 additions and 42695 deletions

View file

@ -29,14 +29,15 @@ function smarty_function_popup($params, &$smarty)
case 'function':
case 'inarray':
$$_key = (string)$_value;
if ($_key == 'function' || $_key == 'inarray')
if ($_key == 'function' || $_key == 'inarray') {
$append .= ',' . strtoupper($_key) . ",'$_value'";
}
break;
case 'caption':
case 'closetext':
case 'status':
$append .= ',' . strtoupper($_key) . ",'" . str_replace("'","\'",$_value) . "'";
$append .= ',' . strtoupper($_key) . ",'" . str_replace("'", "\'", $_value) . "'";
break;
case 'fgcolor':
@ -90,7 +91,9 @@ function smarty_function_popup($params, &$smarty)
case 'mouseoff':
case 'followmouse':
case 'closeclick':
if ($_value) $append .= ',' . strtoupper($_key);
if ($_value) {
$append .= ',' . strtoupper($_key);
}
break;
default:
@ -103,17 +106,18 @@ function smarty_function_popup($params, &$smarty)
return false;
}
if (empty($trigger)) { $trigger = "onmouseover"; }
if (empty($trigger)) {
$trigger = "onmouseover";
}
$retval = $trigger . '="return overlib(\''.preg_replace(array("!'!","![\r\n]!"),array("\'",'\r'),$text).'\'';
$retval = $trigger . '="return overlib(\''.preg_replace(array("!'!","![\r\n]!"), array("\'",'\r'), $text).'\'';
$retval .= $append . ');"';
if ($trigger == 'onmouseover')
$retval .= ' onmouseout="nd();"';
if ($trigger == 'onmouseover') {
$retval .= ' onmouseout="nd();"';
}
return $retval;
}
/* vim: set expandtab: */
?>