Commit d76d3734 authored by mmn's avatar mmn

Function declarations not matching their parents

parent 871912a0
......@@ -49,16 +49,9 @@ class ApiconversationAction extends ApiAuthAction
protected $conversation = null;
protected $notices = null;
/**
* For initializing members of the class.
*
* @param array $argarray misc. arguments
*
* @return boolean true
*/
function prepare($argarray)
protected function prepare(array $args=array())
{
parent::prepare($argarray);
parent::prepare($args);
$convId = $this->trimmed('id');
......
......@@ -97,7 +97,7 @@ class ConversationAction extends ManagedAction
Event::handle('EndShowConversation', array($this, $this->conv, $this->scoped));
}
function isReadOnly()
function isReadOnly($args)
{
return true;
}
......
......@@ -72,9 +72,9 @@ class ClientErrorAction extends ErrorAction
// XXX: Should these error actions even be invokable via URI?
function handle($args)
protected function handle()
{
parent::handle($args);
parent::handle();
$this->code = $this->trimmed('code');
......
......@@ -48,7 +48,7 @@ if (!defined('STATUSNET')) {
class FullThreadedNoticeList extends ThreadedNoticeList
{
function newListItem($notice)
function newListItem(Notice $notice)
{
return new FullThreadedNoticeListItem($notice, $this->out, $this->userProfile);
}
......
......@@ -78,9 +78,9 @@ class ServerErrorAction extends ErrorAction
// XXX: Should these error actions even be invokable via URI?
function handle($args)
protected function handle()
{
parent::handle($args);
parent::handle();
$this->code = $this->trimmed('code');
......
......@@ -43,7 +43,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
class WAP20Plugin extends Plugin
{
function onStartShowHTML($action)
function onStartShowHTML(Action $action)
{
}
......
......@@ -260,7 +260,7 @@ class QnAPlugin extends MicroAppPlugin
* @return boolean hook value
*/
function onStartOpenNoticeListItemElement($nli)
function onStartOpenNoticeListItemElement(NoticeListItem $nli)
{
$type = $nli->notice->object_type;
......@@ -325,7 +325,7 @@ class QnAPlugin extends MicroAppPlugin
*
* @todo FIXME: WARNING WARNING WARNING this closes a 'div' that is implicitly opened in BookmarkPlugin's showNotice implementation
*/
function onStartShowNoticeItem($nli)
function onStartShowNoticeItem(NoticeListItem $nli)
{
if (!$this->isMyNotice($nli->notice)) {
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment