More code style

This commit is contained in:
Thomas Gelf 2014-03-31 16:37:21 +00:00
parent d658eff9b1
commit 88cdf99934

View File

@ -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(
$name 'Cannot assign the same helper function twice: "%s"',
)); $name
)
);
} }
$this->helperFunctions[$name] = $function; $this->helperFunctions[$name] = $function;