get rid of some PHP Strict Standards warnings

The function declarations did not match the parent class.
This commit is contained in:
Mikael Nordfeldth 2015-07-12 12:38:32 +02:00
parent 916fb82d65
commit 0e2b521d6e
2 changed files with 5 additions and 7 deletions

View File

@ -57,9 +57,9 @@ class ApiQvitterCheckLoginAction extends ApiAction
* *
* @return void * @return void
*/ */
function handle($args) protected function handle()
{ {
parent::handle($args); parent::handle();
if ($_SERVER['REQUEST_METHOD'] != 'POST') { if ($_SERVER['REQUEST_METHOD'] != 'POST') {
$this->clientError( $this->clientError(

View File

@ -65,7 +65,7 @@ class ApiTimelinePublicAndExternalAction extends ApiPrivateAuthAction
* @return boolean success flag * @return boolean success flag
* *
*/ */
function prepare($args) protected function prepare(array $args=array())
{ {
parent::prepare($args); parent::prepare($args);
@ -79,13 +79,11 @@ class ApiTimelinePublicAndExternalAction extends ApiPrivateAuthAction
* *
* Just show the notices * Just show the notices
* *
* @param array $args $_REQUEST data (unused)
*
* @return void * @return void
*/ */
function handle($args) protected function handle()
{ {
parent::handle($args); parent::handle();
$this->showTimeline(); $this->showTimeline();
} }