PHPCS newbookmark

This commit is contained in:
Evan Prodromou 2010-12-21 10:22:50 -05:00
parent 907f1ad633
commit d9ff466d2c

View File

@ -55,6 +55,12 @@ class NewbookmarkAction extends Action
private $_tags = null; private $_tags = null;
private $_description = null; private $_description = null;
/**
* Returns the title of the action
*
* @return string Action title
*/
function title() function title()
{ {
return _('New bookmark'); return _('New bookmark');
@ -75,7 +81,8 @@ class NewbookmarkAction extends Action
$this->_user = common_current_user(); $this->_user = common_current_user();
if (empty($this->_user)) { if (empty($this->_user)) {
throw new ClientException(_("Must be logged in to post a bookmark."), 403); throw new ClientException(_("Must be logged in to post a bookmark."),
403);
} }
if ($this->isPost()) { if ($this->isPost()) {
@ -187,3 +194,4 @@ class NewbookmarkAction extends Action
} }
} }
} }