More code style

This commit is contained in:
Thomas Gelf 2014-03-31 16:37:21 +00:00
parent d658eff9b1
commit 88cdf99934
1 changed files with 7 additions and 4 deletions

View File

@ -100,7 +100,8 @@ class View extends Zend_View_Abstract
* @param string $value The output to be escaped
* @return string
*/
public function escape($value) {
public function escape($value)
{
return htmlspecialchars($value, $this->replaceFlags, self::CHARSET, true);
}
@ -126,9 +127,11 @@ class View extends Zend_View_Abstract
{
if ($this->hasHelperFunction($name)) {
throw new ProgrammingError(
sprintf('Cannot assign the same helper function twice: "%s"',
$name
));
sprintf(
'Cannot assign the same helper function twice: "%s"',
$name
)
);
}
$this->helperFunctions[$name] = $function;