Commit f8b49e69 authored by mmn's avatar mmn

Protected function prepare with array $args defaulting to array()

parent 2dfa0bfc
......@@ -54,7 +54,7 @@ class ApiAccountRegisterAction extends ApiAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -41,7 +41,7 @@ class ApiAccountUpdateBackgroundColorAction extends ApiAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -41,7 +41,7 @@ class ApiAccountUpdateLinkColorAction extends ApiAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -52,7 +52,7 @@ class ApiAccountUpdateProfileAction extends ApiAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -46,7 +46,7 @@ class ApiAttachmentAction extends ApiAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -58,7 +58,7 @@ class ApiBlockCreateAction extends ApiAuthAction
* @return boolean success flag
*
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -56,7 +56,7 @@ class ApiBlockDestroyAction extends ApiAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -43,7 +43,7 @@ class ApiCheckHubAction extends ApiAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -34,7 +34,7 @@ if (!defined('GNUSOCIAL')) { exit(1); }
class ApiCheckNicknameAction extends ApiAction
{
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -61,7 +61,7 @@ class ApiDirectMessageNewAction extends ApiAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -42,7 +42,7 @@ class ApiExternalProfileShowAction extends ApiPrivateAuthAction
* @return boolean success flag
*
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -60,7 +60,7 @@ class ApiFriendshipsCreateAction extends ApiAuthAction
* @return boolean success flag
*
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -61,7 +61,7 @@ class ApiGroupAdminsAction extends ApiPrivateAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -67,7 +67,7 @@ class ApiGroupCreateAction extends ApiAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -59,7 +59,7 @@ class ApiGroupIsMemberAction extends ApiBareAuthAction
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -60,7 +60,7 @@ class ApiGroupJoinAction extends ApiAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -60,7 +60,7 @@ class ApiGroupLeaveAction extends ApiAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -58,7 +58,7 @@ class ApiGroupListAction extends ApiBareAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -59,7 +59,7 @@ class ApiGroupMembershipAction extends ApiPrivateAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -51,7 +51,7 @@ class ApiGroupProfileUpdateAction extends ApiAuthAction
* @return boolean success flag
*
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -59,7 +59,7 @@ class ApiGroupShowAction extends ApiPrivateAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -59,7 +59,7 @@ class ApiListAction extends ApiBareAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -56,7 +56,7 @@ class ApiListMemberAction extends ApiBareAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -57,7 +57,7 @@ class ApiListMembershipsAction extends ApiBareAuthAction
* @return boolean success flag
*
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -61,7 +61,7 @@ class ApiListsAction extends ApiBareAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -46,7 +46,7 @@ class ApiListSubscriptionsAction extends ApiBareAuthAction
* @return boolean success flag
*
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -46,7 +46,7 @@ class ApiStatusesFavsAction extends ApiAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -60,7 +60,7 @@ abstract class ApiSubscriptionsAction extends ApiBareAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -57,7 +57,7 @@ class ApiTimelineFavoritesAction extends ApiBareAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -161,7 +161,7 @@ class ApiTimelineFriendsAction extends ApiBareAuthAction
* @return boolean success flag
*
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
$this->target = $this->getTargetProfile($this->arg('id'));
......
......@@ -60,7 +60,7 @@ class ApiTimelineGroupAction extends ApiPrivateAuthAction
* @return boolean success flag
*
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -65,7 +65,7 @@ class ApiTimelineHomeAction extends ApiBareAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -66,7 +66,7 @@ class ApiTimelineListAction extends ApiPrivateAuthAction
* @return boolean success flag
*
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -64,7 +64,7 @@ class ApiTimelineMentionsAction extends ApiBareAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -66,7 +66,7 @@ class ApiTimelineUserAction extends ApiBareAuthAction
*
* @return boolean success flag
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -51,7 +51,7 @@ class ApiUserProfileImageAction extends ApiPrivateAuthAction
* @return boolean success flag
*
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
$user = User::getKV('nickname', $this->arg('screen_name'));
......
......@@ -57,7 +57,7 @@ class ApiUserShowAction extends ApiPrivateAuthAction
* @return boolean success flag
*
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -74,7 +74,7 @@ class NewmessageAction extends FormAction
* @return void
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -47,7 +47,7 @@ class RepeatAction extends Action
protected $needLogin = true;
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -57,7 +57,7 @@ class ShowstreamAction extends ProfileAction
{
var $notice;
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -40,7 +40,7 @@ class ApiListUsersAction extends ApiBareAuthAction
var $prev_cursor = 0;
var $users = null;
protected function prepare($args)
protected function prepare(array $args=array())
{
// delete list member if method is DELETE or if method is POST and an argument
// _method is set to DELETE
......
......@@ -53,7 +53,7 @@ class ProfileAction extends Action
protected $target = null; // Profile that we're showing
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -89,7 +89,7 @@ class AutocompleteAction extends Action
$this->lastModified())) . '"';
}
protected function prepare($args)
protected function prepare(array $args=array())
{
// If we die, show short error messages.
StatusNet::setApi(true);
......
......@@ -35,7 +35,7 @@ class OStatusInitAction extends Action
var $profile;
var $err;
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
......
......@@ -47,7 +47,7 @@ class PushHubAction extends Action
return parent::arg($arg, $def);
}
protected function prepare($args)
protected function prepare(array $args=array())
{
StatusNet::setApi(true); // reduce exception reports to aid in debugging
return parent::prepare($args);
......
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