Code formatting for ViewHelper & tests
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
|
||||
class MsgViewHelper extends ViewHelper
|
||||
{
|
||||
|
||||
|
||||
const SUCCESS = 'success';
|
||||
const ERROR = 'error';
|
||||
|
||||
@ -27,12 +27,12 @@ class MsgViewHelper extends ViewHelper
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
public function success($msg)
|
||||
{
|
||||
Session::set(__CLASS__, array('message' => $msg, 'type' => self::SUCCESS));
|
||||
}
|
||||
|
||||
|
||||
public function error($msg)
|
||||
{
|
||||
Session::set(__CLASS__, array('message' => $msg, 'type' => self::ERROR));
|
||||
|
Reference in New Issue
Block a user