Code formatting for ViewHelper & tests

This commit is contained in:
Anton Terekhov
2012-11-21 15:43:20 +04:00
parent 0d58a907e5
commit 07a244ca35
11 changed files with 87 additions and 79 deletions

View File

@ -11,9 +11,9 @@
class TitleViewHelper extends ViewHelper
{
protected $separator = ' - ';
public function title($string = false)
{
if ($string) {
@ -23,12 +23,12 @@ class TitleViewHelper extends ViewHelper
}
return $this;
}
public function setSeparator($sep)
{
$this->separator = $sep;
}
public function __toString()
{
return implode($this->separator, Registry::get(__CLASS__, array()));