mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
More code style
This commit is contained in:
parent
d658eff9b1
commit
88cdf99934
@ -100,7 +100,8 @@ class View extends Zend_View_Abstract
|
|||||||
* @param string $value The output to be escaped
|
* @param string $value The output to be escaped
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function escape($value) {
|
public function escape($value)
|
||||||
|
{
|
||||||
return htmlspecialchars($value, $this->replaceFlags, self::CHARSET, true);
|
return htmlspecialchars($value, $this->replaceFlags, self::CHARSET, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -126,9 +127,11 @@ class View extends Zend_View_Abstract
|
|||||||
{
|
{
|
||||||
if ($this->hasHelperFunction($name)) {
|
if ($this->hasHelperFunction($name)) {
|
||||||
throw new ProgrammingError(
|
throw new ProgrammingError(
|
||||||
sprintf('Cannot assign the same helper function twice: "%s"',
|
sprintf(
|
||||||
|
'Cannot assign the same helper function twice: "%s"',
|
||||||
$name
|
$name
|
||||||
));
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->helperFunctions[$name] = $function;
|
$this->helperFunctions[$name] = $function;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user