From 9de79f0a3643cd186b46d68894b4fc9ff40e494e Mon Sep 17 00:00:00 2001 From: Chimo Date: Wed, 1 Jun 2016 02:21:50 +0000 Subject: [PATCH] Update prepare() method on Action subclasses. Fixes handle()-related strict warnings such as "Strict Standards: Declaration of AdminPanelAction::prepare() should be compatible with Action::prepare(array $args = Array) Ref. #190 --- actions/addpeopletag.php | 2 +- actions/apiaccountupdatedeliverydevice.php | 2 +- actions/apiatomservice.php | 2 +- actions/apigrouplistall.php | 2 +- actions/apilistsubscriber.php | 2 +- actions/apioauthauthorize.php | 2 +- actions/apioauthrequesttoken.php | 2 +- actions/apisearchatom.php | 2 +- actions/apisearchjson.php | 2 +- actions/apitrends.php | 2 +- actions/approvegroup.php | 2 +- actions/approvesub.php | 2 +- actions/block.php | 2 +- actions/cancelgroup.php | 2 +- actions/deleteapplication.php | 2 +- actions/deletegroup.php | 2 +- actions/editapplication.php | 2 +- actions/editpeopletag.php | 2 +- actions/featured.php | 2 +- actions/foafgroup.php | 2 +- actions/geocode.php | 2 +- actions/grantrole.php | 2 +- actions/groupblock.php | 2 +- actions/groups.php | 2 +- actions/groupunblock.php | 2 +- actions/makeadmin.php | 2 +- actions/noticesearch.php | 2 +- actions/otp.php | 2 +- actions/peopletag.php | 2 +- actions/peopletagautocomplete.php | 2 +- actions/peopletagged.php | 2 +- actions/peopletagsbyuser.php | 2 +- actions/peopletagsforuser.php | 2 +- actions/peopletagsubscribers.php | 2 +- actions/peopletagsubscriptions.php | 2 +- actions/pluginenable.php | 2 +- actions/profilecompletion.php | 2 +- actions/profiletagbyid.php | 2 +- actions/removepeopletag.php | 2 +- actions/revokerole.php | 2 +- actions/rsd.php | 2 +- actions/sandbox.php | 2 +- actions/showapplication.php | 2 +- actions/subedit.php | 2 +- actions/subscribe.php | 2 +- actions/subscribepeopletag.php | 2 +- actions/unblock.php | 2 +- actions/unsandbox.php | 2 +- actions/unsubscribepeopletag.php | 2 +- lib/adminpanelaction.php | 2 +- lib/profileformaction.php | 2 +- plugins/Bookmark/actions/apitimelinebookmarks.php | 2 +- plugins/Bookmark/actions/bookmarkforurl.php | 2 +- plugins/Bookmark/actions/bookmarks.php | 2 +- plugins/ClientSideShorten/actions/shorten.php | 2 +- plugins/DirectMessage/actions/showmessage.php | 2 +- plugins/DirectMessage/lib/mailboxaction.php | 2 +- plugins/DomainStatusNetwork/actions/globalapi.php | 2 +- plugins/Event/actions/timelist.php | 2 +- plugins/ExtendedProfile/actions/userautocomplete.php | 2 +- plugins/FacebookBridge/actions/facebookdeauthorize.php | 2 +- plugins/FacebookBridge/actions/facebookfinishlogin.php | 2 +- plugins/Favorite/actions/apifavoritedestroy.php | 2 +- plugins/Favorite/actions/favorited.php | 2 +- plugins/GNUsocialPhoto/actions/newphoto.php | 2 +- plugins/GNUsocialPhotos/actions/editphoto.php | 2 +- plugins/GNUsocialPhotos/actions/photos.php | 2 +- plugins/GNUsocialPhotos/actions/photoupload.php | 2 +- plugins/GNUsocialProfileExtensions/actions/bio.php | 2 +- plugins/GNUsocialVideo/actions/postvideo.php | 2 +- plugins/GNUsocialVideo/actions/showvideo.php | 2 +- plugins/Mapstraction/actions/allmap.php | 2 +- plugins/Mapstraction/actions/map.php | 2 +- plugins/Mapstraction/actions/usermap.php | 2 +- plugins/OStatus/actions/ostatustag.php | 2 +- plugins/OpenID/actions/openidserver.php | 2 +- plugins/OpenID/actions/openidtrust.php | 2 +- plugins/RSSCloud/actions/loggingaggregator.php | 2 +- plugins/RSSCloud/actions/rsscloudrequestnotify.php | 2 +- plugins/Sample/actions/hello.php | 2 +- plugins/SearchSub/actions/searchsub.php | 2 +- plugins/Share/actions/apistatusesretweets.php | 2 +- plugins/Share/actions/apitimelineretweetedbyme.php | 2 +- plugins/Share/actions/apitimelineretweetsofme.php | 2 +- plugins/Sitemap/actions/noticesitemap.php | 2 +- plugins/Sitemap/actions/usersitemap.php | 2 +- plugins/SlicedFavorites/actions/favoritedslice.php | 2 +- plugins/TagSub/actions/tagsub.php | 2 +- plugins/UserFlag/actions/adminprofileflag.php | 2 +- plugins/UserFlag/actions/clearflag.php | 2 +- plugins/UserFlag/actions/flagprofile.php | 2 +- 91 files changed, 91 insertions(+), 91 deletions(-) diff --git a/actions/addpeopletag.php b/actions/addpeopletag.php index 3de29d54a2..94a2cddfb0 100644 --- a/actions/addpeopletag.php +++ b/actions/addpeopletag.php @@ -65,7 +65,7 @@ class AddpeopletagAction extends Action * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/apiaccountupdatedeliverydevice.php b/actions/apiaccountupdatedeliverydevice.php index d2f137077d..549ab5243a 100644 --- a/actions/apiaccountupdatedeliverydevice.php +++ b/actions/apiaccountupdatedeliverydevice.php @@ -54,7 +54,7 @@ class ApiAccountUpdateDeliveryDeviceAction extends ApiAuthAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/apiatomservice.php b/actions/apiatomservice.php index 87a39b56a3..7673cee043 100644 --- a/actions/apiatomservice.php +++ b/actions/apiatomservice.php @@ -51,7 +51,7 @@ class ApiAtomServiceAction extends ApiBareAuthAction * @return boolean success flag * */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); $this->user = $this->getTargetUser($this->arg('id')); diff --git a/actions/apigrouplistall.php b/actions/apigrouplistall.php index 932e524ae1..90f8eed8fa 100644 --- a/actions/apigrouplistall.php +++ b/actions/apigrouplistall.php @@ -58,7 +58,7 @@ class ApiGroupListAllAction extends ApiPrivateAuthAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/apilistsubscriber.php b/actions/apilistsubscriber.php index 21c0b20b74..f0391cc445 100644 --- a/actions/apilistsubscriber.php +++ b/actions/apilistsubscriber.php @@ -33,7 +33,7 @@ class ApiListSubscriberAction extends ApiBareAuthAction { var $list = null; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/apioauthauthorize.php b/actions/apioauthauthorize.php index 6c93d47ccd..8f0329cb80 100644 --- a/actions/apioauthauthorize.php +++ b/actions/apioauthauthorize.php @@ -60,7 +60,7 @@ class ApiOAuthAuthorizeAction extends ApiOAuthAction return false; } - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/apioauthrequesttoken.php b/actions/apioauthrequesttoken.php index b85ca70c47..1279d5e092 100644 --- a/actions/apioauthrequesttoken.php +++ b/actions/apioauthrequesttoken.php @@ -49,7 +49,7 @@ class ApiOAuthRequestTokenAction extends ApiOAuthAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/apisearchatom.php b/actions/apisearchatom.php index fca745c1fd..3a24b771ea 100644 --- a/actions/apisearchatom.php +++ b/actions/apisearchatom.php @@ -88,7 +88,7 @@ class ApiSearchAtomAction extends ApiPrivateAuthAction * * @return boolean success */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/apisearchjson.php b/actions/apisearchjson.php index cec826c016..d49444369d 100644 --- a/actions/apisearchjson.php +++ b/actions/apisearchjson.php @@ -57,7 +57,7 @@ class ApiSearchJSONAction extends ApiPrivateAuthAction * * @return boolean true if nothing goes wrong */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/apitrends.php b/actions/apitrends.php index 79bd452dba..996ad66301 100644 --- a/actions/apitrends.php +++ b/actions/apitrends.php @@ -53,7 +53,7 @@ class ApiTrendsAction extends ApiPrivateAuthAction * * @return boolean false if user doesn't exist */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); return true; diff --git a/actions/approvegroup.php b/actions/approvegroup.php index 18f62d28b1..e080be6474 100644 --- a/actions/approvegroup.php +++ b/actions/approvegroup.php @@ -50,7 +50,7 @@ class ApprovegroupAction extends Action /** * Prepare to run */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/approvesub.php b/actions/approvesub.php index aa8c23bf7d..147d37f297 100644 --- a/actions/approvesub.php +++ b/actions/approvesub.php @@ -50,7 +50,7 @@ class ApprovesubAction extends Action /** * Prepare to run */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/block.php b/actions/block.php index 5a8996f807..1d2910dc19 100644 --- a/actions/block.php +++ b/actions/block.php @@ -53,7 +53,7 @@ class BlockAction extends ProfileFormAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { if (!parent::prepare($args)) { return false; diff --git a/actions/cancelgroup.php b/actions/cancelgroup.php index 02e9493551..5688b5c451 100644 --- a/actions/cancelgroup.php +++ b/actions/cancelgroup.php @@ -50,7 +50,7 @@ class CancelgroupAction extends Action /** * Prepare to run */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/deleteapplication.php b/actions/deleteapplication.php index 297ddc54bc..0a9af4cfb9 100644 --- a/actions/deleteapplication.php +++ b/actions/deleteapplication.php @@ -51,7 +51,7 @@ class DeleteapplicationAction extends Action * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { if (!parent::prepare($args)) { return false; diff --git a/actions/deletegroup.php b/actions/deletegroup.php index aacfe35bde..2a4343b06e 100644 --- a/actions/deletegroup.php +++ b/actions/deletegroup.php @@ -55,7 +55,7 @@ class DeletegroupAction extends RedirectingAction * @fixme merge common setup code with other group actions * @fixme allow group admins to delete their own groups */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/editapplication.php b/actions/editapplication.php index c0e27d86fb..d492afb08f 100644 --- a/actions/editapplication.php +++ b/actions/editapplication.php @@ -57,7 +57,7 @@ class EditApplicationAction extends Action /** * Prepare to run */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/editpeopletag.php b/actions/editpeopletag.php index 02dc06180d..0fbba56224 100644 --- a/actions/editpeopletag.php +++ b/actions/editpeopletag.php @@ -60,7 +60,7 @@ class EditpeopletagAction extends Action * Prepare to run */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/featured.php b/actions/featured.php index a30d5867a4..5609d6bace 100644 --- a/actions/featured.php +++ b/actions/featured.php @@ -54,7 +54,7 @@ class FeaturedAction extends Action return true; } - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; diff --git a/actions/foafgroup.php b/actions/foafgroup.php index 57303cf362..e0cec8866c 100644 --- a/actions/foafgroup.php +++ b/actions/foafgroup.php @@ -35,7 +35,7 @@ class FoafGroupAction extends Action return true; } - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/geocode.php b/actions/geocode.php index 6e4d1ce0f4..dc547f2c36 100644 --- a/actions/geocode.php +++ b/actions/geocode.php @@ -47,7 +47,7 @@ class GeocodeAction extends Action var $lon = null; var $location = null; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); $token = $this->trimmed('token'); diff --git a/actions/grantrole.php b/actions/grantrole.php index 35f0dcf961..2fc4907cfc 100644 --- a/actions/grantrole.php +++ b/actions/grantrole.php @@ -49,7 +49,7 @@ class GrantRoleAction extends ProfileFormAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { if (!parent::prepare($args)) { return false; diff --git a/actions/groupblock.php b/actions/groupblock.php index 4bf5d74c20..43fa1f52d5 100644 --- a/actions/groupblock.php +++ b/actions/groupblock.php @@ -52,7 +52,7 @@ class GroupblockAction extends RedirectingAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); if (!common_logged_in()) { diff --git a/actions/groups.php b/actions/groups.php index 258fee262b..2e88d0a960 100644 --- a/actions/groups.php +++ b/actions/groups.php @@ -67,7 +67,7 @@ class GroupsAction extends Action } } - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; diff --git a/actions/groupunblock.php b/actions/groupunblock.php index 7a4853aa37..42c68b7abd 100644 --- a/actions/groupunblock.php +++ b/actions/groupunblock.php @@ -52,7 +52,7 @@ class GroupunblockAction extends Action * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); if (!common_logged_in()) { diff --git a/actions/makeadmin.php b/actions/makeadmin.php index 8c88d4cd69..1bb830f81e 100644 --- a/actions/makeadmin.php +++ b/actions/makeadmin.php @@ -54,7 +54,7 @@ class MakeadminAction extends RedirectingAction * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); if (!common_logged_in()) { diff --git a/actions/noticesearch.php b/actions/noticesearch.php index d7cdeaacc6..2886700f6a 100644 --- a/actions/noticesearch.php +++ b/actions/noticesearch.php @@ -50,7 +50,7 @@ class NoticesearchAction extends SearchAction { protected $q = null; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/otp.php b/actions/otp.php index c5f3e70b26..bb888acb6a 100644 --- a/actions/otp.php +++ b/actions/otp.php @@ -53,7 +53,7 @@ class OtpAction extends Action var $returnto; var $lt; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/peopletag.php b/actions/peopletag.php index 007e722a0b..ed811ce262 100644 --- a/actions/peopletag.php +++ b/actions/peopletag.php @@ -62,7 +62,7 @@ class PeopletagAction extends Action } } - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; diff --git a/actions/peopletagautocomplete.php b/actions/peopletagautocomplete.php index c165b40805..3daac8e868 100644 --- a/actions/peopletagautocomplete.php +++ b/actions/peopletagautocomplete.php @@ -44,7 +44,7 @@ class PeopletagautocompleteAction extends Action * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/peopletagged.php b/actions/peopletagged.php index d82a448ce5..1b0f897c11 100644 --- a/actions/peopletagged.php +++ b/actions/peopletagged.php @@ -53,7 +53,7 @@ class PeopletaggedAction extends Action return true; } - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; diff --git a/actions/peopletagsbyuser.php b/actions/peopletagsbyuser.php index 0b85bf2956..7463108774 100644 --- a/actions/peopletagsbyuser.php +++ b/actions/peopletagsbyuser.php @@ -68,7 +68,7 @@ class PeopletagsbyuserAction extends Action } } - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/peopletagsforuser.php b/actions/peopletagsforuser.php index 909969db22..a930328156 100644 --- a/actions/peopletagsforuser.php +++ b/actions/peopletagsforuser.php @@ -54,7 +54,7 @@ class PeopletagsforuserAction extends Action } } - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/peopletagsubscribers.php b/actions/peopletagsubscribers.php index 354f2deb0e..e5be8a3ff4 100644 --- a/actions/peopletagsubscribers.php +++ b/actions/peopletagsubscribers.php @@ -53,7 +53,7 @@ class PeopletagsubscribersAction extends Action return true; } - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; diff --git a/actions/peopletagsubscriptions.php b/actions/peopletagsubscriptions.php index 2be9187b9e..ae491bbe59 100644 --- a/actions/peopletagsubscriptions.php +++ b/actions/peopletagsubscriptions.php @@ -56,7 +56,7 @@ class PeopletagsubscriptionsAction extends Action } } - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/pluginenable.php b/actions/pluginenable.php index da36f0995f..d0467ec2d8 100644 --- a/actions/pluginenable.php +++ b/actions/pluginenable.php @@ -64,7 +64,7 @@ class PluginEnableAction extends Action * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/profilecompletion.php b/actions/profilecompletion.php index a931d6aead..4b0c4607e7 100644 --- a/actions/profilecompletion.php +++ b/actions/profilecompletion.php @@ -68,7 +68,7 @@ class ProfilecompletionAction extends Action * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/profiletagbyid.php b/actions/profiletagbyid.php index 4804e35c83..4c333ae9b6 100644 --- a/actions/profiletagbyid.php +++ b/actions/profiletagbyid.php @@ -45,7 +45,7 @@ class ProfiletagbyidAction extends Action return true; } - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/removepeopletag.php b/actions/removepeopletag.php index 529bcbcb17..20fd80bc7a 100644 --- a/actions/removepeopletag.php +++ b/actions/removepeopletag.php @@ -66,7 +66,7 @@ class RemovepeopletagAction extends Action * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/revokerole.php b/actions/revokerole.php index b55399598e..42aa2a7fa5 100644 --- a/actions/revokerole.php +++ b/actions/revokerole.php @@ -49,7 +49,7 @@ class RevokeRoleAction extends ProfileFormAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { if (!parent::prepare($args)) { return false; diff --git a/actions/rsd.php b/actions/rsd.php index 92cf8b95e3..0feab73c28 100644 --- a/actions/rsd.php +++ b/actions/rsd.php @@ -85,7 +85,7 @@ class RsdAction extends Action * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/sandbox.php b/actions/sandbox.php index af2eab3842..37a1af8c19 100644 --- a/actions/sandbox.php +++ b/actions/sandbox.php @@ -49,7 +49,7 @@ class SandboxAction extends ProfileFormAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { if (!parent::prepare($args)) { return false; diff --git a/actions/showapplication.php b/actions/showapplication.php index ecc3b268fe..8696cb3caf 100644 --- a/actions/showapplication.php +++ b/actions/showapplication.php @@ -65,7 +65,7 @@ class ShowApplicationAction extends Action * * @return success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/subedit.php b/actions/subedit.php index 9e779c4f06..d6a0e95468 100644 --- a/actions/subedit.php +++ b/actions/subedit.php @@ -24,7 +24,7 @@ class SubeditAction extends Action { var $profile = null; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/subscribe.php b/actions/subscribe.php index f8b6093bbd..7e8c8178eb 100644 --- a/actions/subscribe.php +++ b/actions/subscribe.php @@ -64,7 +64,7 @@ class SubscribeAction extends Action * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/subscribepeopletag.php b/actions/subscribepeopletag.php index e9d4cbcc37..3d2654dd04 100644 --- a/actions/subscribepeopletag.php +++ b/actions/subscribepeopletag.php @@ -50,7 +50,7 @@ class SubscribepeopletagAction extends Action /** * Prepare to run */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/actions/unblock.php b/actions/unblock.php index 82d0d32c10..1da6ece4ba 100644 --- a/actions/unblock.php +++ b/actions/unblock.php @@ -44,7 +44,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { */ class UnblockAction extends ProfileFormAction { - function prepare($args) + function prepare(array $args = array()) { if (!parent::prepare($args)) { return false; diff --git a/actions/unsandbox.php b/actions/unsandbox.php index b87736fcff..1311b13f3e 100644 --- a/actions/unsandbox.php +++ b/actions/unsandbox.php @@ -49,7 +49,7 @@ class UnsandboxAction extends ProfileFormAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { if (!parent::prepare($args)) { return false; diff --git a/actions/unsubscribepeopletag.php b/actions/unsubscribepeopletag.php index 7d9925720d..5448661354 100644 --- a/actions/unsubscribepeopletag.php +++ b/actions/unsubscribepeopletag.php @@ -51,7 +51,7 @@ class UnsubscribepeopletagAction extends Action * Prepare to run */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/lib/adminpanelaction.php b/lib/adminpanelaction.php index 322c6d7358..36b697b302 100644 --- a/lib/adminpanelaction.php +++ b/lib/adminpanelaction.php @@ -60,7 +60,7 @@ class AdminPanelAction extends Action * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/lib/profileformaction.php b/lib/profileformaction.php index e340627e9d..a42df95bd6 100644 --- a/lib/profileformaction.php +++ b/lib/profileformaction.php @@ -51,7 +51,7 @@ class ProfileFormAction extends RedirectingAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/Bookmark/actions/apitimelinebookmarks.php b/plugins/Bookmark/actions/apitimelinebookmarks.php index 2376e994ac..39c0e7a0ee 100644 --- a/plugins/Bookmark/actions/apitimelinebookmarks.php +++ b/plugins/Bookmark/actions/apitimelinebookmarks.php @@ -57,7 +57,7 @@ class ApiTimelineBookmarksAction extends ApiBareAuthAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/Bookmark/actions/bookmarkforurl.php b/plugins/Bookmark/actions/bookmarkforurl.php index c4cc4a8487..f4393dd193 100644 --- a/plugins/Bookmark/actions/bookmarkforurl.php +++ b/plugins/Bookmark/actions/bookmarkforurl.php @@ -59,7 +59,7 @@ class BookmarkforurlAction extends Action * * @return boolean true */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/Bookmark/actions/bookmarks.php b/plugins/Bookmark/actions/bookmarks.php index 0c908a2ca8..68fa34a0db 100644 --- a/plugins/Bookmark/actions/bookmarks.php +++ b/plugins/Bookmark/actions/bookmarks.php @@ -60,7 +60,7 @@ class BookmarksAction extends Action * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/ClientSideShorten/actions/shorten.php b/plugins/ClientSideShorten/actions/shorten.php index 8351839cdb..72ed5624b5 100644 --- a/plugins/ClientSideShorten/actions/shorten.php +++ b/plugins/ClientSideShorten/actions/shorten.php @@ -45,7 +45,7 @@ class ShortenAction extends Action { private $text; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); $this->groups=array(); diff --git a/plugins/DirectMessage/actions/showmessage.php b/plugins/DirectMessage/actions/showmessage.php index f7dc3731b4..7c4b2a0f73 100644 --- a/plugins/DirectMessage/actions/showmessage.php +++ b/plugins/DirectMessage/actions/showmessage.php @@ -62,7 +62,7 @@ class ShowmessageAction extends Action * * @return success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/DirectMessage/lib/mailboxaction.php b/plugins/DirectMessage/lib/mailboxaction.php index fd2e1fabc4..3b7fb52c6a 100644 --- a/plugins/DirectMessage/lib/mailboxaction.php +++ b/plugins/DirectMessage/lib/mailboxaction.php @@ -46,7 +46,7 @@ class MailboxAction extends Action { var $page = null; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/DomainStatusNetwork/actions/globalapi.php b/plugins/DomainStatusNetwork/actions/globalapi.php index d47a254940..7a9e4fe92d 100644 --- a/plugins/DomainStatusNetwork/actions/globalapi.php +++ b/plugins/DomainStatusNetwork/actions/globalapi.php @@ -57,7 +57,7 @@ class GlobalApiAction extends Action * @return boolean continuation flag */ - function prepare($args) + function prepare(array $args = array()) { GNUsocial::setApi(true); // reduce exception reports to aid in debugging diff --git a/plugins/Event/actions/timelist.php b/plugins/Event/actions/timelist.php index c24613a8d4..f766ab8496 100644 --- a/plugins/Event/actions/timelist.php +++ b/plugins/Event/actions/timelist.php @@ -42,7 +42,7 @@ class TimelistAction extends Action { * * @return boolean true */ - function prepare($args) { + function prepare(array $args = array()) { parent::prepare($args); $this->start = $this->arg('start'); $this->duration = $this->boolean('duration', false); diff --git a/plugins/ExtendedProfile/actions/userautocomplete.php b/plugins/ExtendedProfile/actions/userautocomplete.php index 9c3afbd106..345988f8ba 100644 --- a/plugins/ExtendedProfile/actions/userautocomplete.php +++ b/plugins/ExtendedProfile/actions/userautocomplete.php @@ -43,7 +43,7 @@ class UserautocompleteAction extends Action * * @return boolean true if nothing goes wrong */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); $this->query = $this->trimmed('term'); diff --git a/plugins/FacebookBridge/actions/facebookdeauthorize.php b/plugins/FacebookBridge/actions/facebookdeauthorize.php index 9173850ca5..aefa9c010c 100644 --- a/plugins/FacebookBridge/actions/facebookdeauthorize.php +++ b/plugins/FacebookBridge/actions/facebookdeauthorize.php @@ -48,7 +48,7 @@ class FacebookdeauthorizeAction extends Action * * @return boolean true */ - function prepare($args) + function prepare(array $args = array()) { $this->facebook = Facebookclient::getFacebook(); diff --git a/plugins/FacebookBridge/actions/facebookfinishlogin.php b/plugins/FacebookBridge/actions/facebookfinishlogin.php index 93d4aaeacd..605d922f27 100644 --- a/plugins/FacebookBridge/actions/facebookfinishlogin.php +++ b/plugins/FacebookBridge/actions/facebookfinishlogin.php @@ -37,7 +37,7 @@ class FacebookfinishloginAction extends Action private $fbuser = null; // Facebook user object (JSON) private $accessToken = null; // Access token provided by Facebook JS API - function prepare($args) { + function prepare(array $args = array()) { parent::prepare($args); // Check cookie for a valid access_token diff --git a/plugins/Favorite/actions/apifavoritedestroy.php b/plugins/Favorite/actions/apifavoritedestroy.php index cf5659978a..70273a0f33 100644 --- a/plugins/Favorite/actions/apifavoritedestroy.php +++ b/plugins/Favorite/actions/apifavoritedestroy.php @@ -57,7 +57,7 @@ class ApiFavoriteDestroyAction extends ApiAuthAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/Favorite/actions/favorited.php b/plugins/Favorite/actions/favorited.php index dbd0ebe5bf..7ab9e19e1d 100644 --- a/plugins/Favorite/actions/favorited.php +++ b/plugins/Favorite/actions/favorited.php @@ -95,7 +95,7 @@ class FavoritedAction extends Action * * @todo move queries from showContent() to here */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; diff --git a/plugins/GNUsocialPhoto/actions/newphoto.php b/plugins/GNUsocialPhoto/actions/newphoto.php index 4f9f293e96..e92a64b3dd 100644 --- a/plugins/GNUsocialPhoto/actions/newphoto.php +++ b/plugins/GNUsocialPhoto/actions/newphoto.php @@ -33,7 +33,7 @@ class NewphotoAction extends Action { var $user = null; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); $this->user = common_current_user(); diff --git a/plugins/GNUsocialPhotos/actions/editphoto.php b/plugins/GNUsocialPhotos/actions/editphoto.php index db36813f27..30bd64b2ca 100644 --- a/plugins/GNUsocialPhotos/actions/editphoto.php +++ b/plugins/GNUsocialPhotos/actions/editphoto.php @@ -36,7 +36,7 @@ class EditphotoAction extends Action { var $user = null; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); $args = $this->returnToArgs(); diff --git a/plugins/GNUsocialPhotos/actions/photos.php b/plugins/GNUsocialPhotos/actions/photos.php index 082736cd21..95d5e12b36 100644 --- a/plugins/GNUsocialPhotos/actions/photos.php +++ b/plugins/GNUsocialPhotos/actions/photos.php @@ -38,7 +38,7 @@ class PhotosAction extends Action { var $user = null; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/GNUsocialPhotos/actions/photoupload.php b/plugins/GNUsocialPhotos/actions/photoupload.php index 6dd5f9aef1..3fea9f492b 100644 --- a/plugins/GNUsocialPhotos/actions/photoupload.php +++ b/plugins/GNUsocialPhotos/actions/photoupload.php @@ -36,7 +36,7 @@ class PhotouploadAction extends Action { var $user = null; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); $this->user = common_current_user(); diff --git a/plugins/GNUsocialProfileExtensions/actions/bio.php b/plugins/GNUsocialProfileExtensions/actions/bio.php index 3022e6e761..948a30ea8e 100644 --- a/plugins/GNUsocialProfileExtensions/actions/bio.php +++ b/plugins/GNUsocialProfileExtensions/actions/bio.php @@ -38,7 +38,7 @@ class BioAction extends Action { var $user = null; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/GNUsocialVideo/actions/postvideo.php b/plugins/GNUsocialVideo/actions/postvideo.php index 729afc5d2d..1be201d00f 100644 --- a/plugins/GNUsocialVideo/actions/postvideo.php +++ b/plugins/GNUsocialVideo/actions/postvideo.php @@ -34,7 +34,7 @@ class PostvideoAction extends Action { var $user = null; var $url = null; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); $this->user = common_current_user(); diff --git a/plugins/GNUsocialVideo/actions/showvideo.php b/plugins/GNUsocialVideo/actions/showvideo.php index 628d08642a..06c80b8abf 100644 --- a/plugins/GNUsocialVideo/actions/showvideo.php +++ b/plugins/GNUsocialVideo/actions/showvideo.php @@ -34,7 +34,7 @@ class ShowvideoAction extends ShownoticeAction protected $id = null; protected $vid = null; - function prepare($args) + function prepare(array $args = array()) { OwnerDesignAction::prepare($args); $this->id = $this->trimmed('id'); diff --git a/plugins/Mapstraction/actions/allmap.php b/plugins/Mapstraction/actions/allmap.php index 77e722e3ef..6fd2215ad9 100644 --- a/plugins/Mapstraction/actions/allmap.php +++ b/plugins/Mapstraction/actions/allmap.php @@ -42,7 +42,7 @@ if (!defined('GNUSOCIAL')) { exit(1); } */ class AllmapAction extends MapAction { - function prepare($args) + function prepare(array $args = array()) { if (parent::prepare($args)) { $stream = new InboxNoticeStream($this->user->getProfile(), $this->scoped); diff --git a/plugins/Mapstraction/actions/map.php b/plugins/Mapstraction/actions/map.php index 0a5334103e..0dbf417dce 100644 --- a/plugins/Mapstraction/actions/map.php +++ b/plugins/Mapstraction/actions/map.php @@ -48,7 +48,7 @@ class MapAction extends Action var $page = null; var $notices = null; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/Mapstraction/actions/usermap.php b/plugins/Mapstraction/actions/usermap.php index 99a43e538a..5fd170925a 100644 --- a/plugins/Mapstraction/actions/usermap.php +++ b/plugins/Mapstraction/actions/usermap.php @@ -44,7 +44,7 @@ if (!defined('STATUSNET')) { */ class UsermapAction extends MapAction { - function prepare($args) + function prepare(array $args = array()) { if(parent::prepare($args)) { $this->notice = empty($this->tag) diff --git a/plugins/OStatus/actions/ostatustag.php b/plugins/OStatus/actions/ostatustag.php index fa999fe09a..99d4a6735c 100644 --- a/plugins/OStatus/actions/ostatustag.php +++ b/plugins/OStatus/actions/ostatustag.php @@ -31,7 +31,7 @@ class OStatusTagAction extends OStatusInitAction var $profile; var $err; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/OpenID/actions/openidserver.php b/plugins/OpenID/actions/openidserver.php index acab0938b8..6cc3061edd 100644 --- a/plugins/OpenID/actions/openidserver.php +++ b/plugins/OpenID/actions/openidserver.php @@ -50,7 +50,7 @@ class OpenidserverAction extends Action { var $oserver; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); $this->oserver = oid_server(); diff --git a/plugins/OpenID/actions/openidtrust.php b/plugins/OpenID/actions/openidtrust.php index 3c0e24981f..734b35bae2 100644 --- a/plugins/OpenID/actions/openidtrust.php +++ b/plugins/OpenID/actions/openidtrust.php @@ -51,7 +51,7 @@ class OpenidtrustAction extends Action return _m('OpenID Identity Verification'); } - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); common_ensure_session(); diff --git a/plugins/RSSCloud/actions/loggingaggregator.php b/plugins/RSSCloud/actions/loggingaggregator.php index a50e99011c..7ef9e65cbf 100644 --- a/plugins/RSSCloud/actions/loggingaggregator.php +++ b/plugins/RSSCloud/actions/loggingaggregator.php @@ -57,7 +57,7 @@ class LoggingAggregatorAction extends Action * * @return boolean false if user doesn't exist */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/RSSCloud/actions/rsscloudrequestnotify.php b/plugins/RSSCloud/actions/rsscloudrequestnotify.php index 4656fc9650..1d294fef68 100644 --- a/plugins/RSSCloud/actions/rsscloudrequestnotify.php +++ b/plugins/RSSCloud/actions/rsscloudrequestnotify.php @@ -50,7 +50,7 @@ class RSSCloudRequestNotifyAction extends Action * * @return boolean false if user doesn't exist */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/Sample/actions/hello.php b/plugins/Sample/actions/hello.php index c0bde93d7d..37bae3a4dd 100644 --- a/plugins/Sample/actions/hello.php +++ b/plugins/Sample/actions/hello.php @@ -66,7 +66,7 @@ class HelloAction extends Action * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/SearchSub/actions/searchsub.php b/plugins/SearchSub/actions/searchsub.php index ae1e1550ae..98c218b8e5 100644 --- a/plugins/SearchSub/actions/searchsub.php +++ b/plugins/SearchSub/actions/searchsub.php @@ -63,7 +63,7 @@ class SearchsubAction extends Action * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); if ($this->boolean('ajax')) { diff --git a/plugins/Share/actions/apistatusesretweets.php b/plugins/Share/actions/apistatusesretweets.php index 9a75aa8918..51a7a0be2f 100644 --- a/plugins/Share/actions/apistatusesretweets.php +++ b/plugins/Share/actions/apistatusesretweets.php @@ -54,7 +54,7 @@ class ApiStatusesRetweetsAction extends ApiAuthAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/Share/actions/apitimelineretweetedbyme.php b/plugins/Share/actions/apitimelineretweetedbyme.php index 01f3fe378b..cb7edfc0d0 100644 --- a/plugins/Share/actions/apitimelineretweetedbyme.php +++ b/plugins/Share/actions/apitimelineretweetedbyme.php @@ -60,7 +60,7 @@ class ApiTimelineRetweetedByMeAction extends ApiAuthAction * @return boolean success flag * */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/Share/actions/apitimelineretweetsofme.php b/plugins/Share/actions/apitimelineretweetsofme.php index 58c6886af6..890c5f4d85 100644 --- a/plugins/Share/actions/apitimelineretweetsofme.php +++ b/plugins/Share/actions/apitimelineretweetsofme.php @@ -59,7 +59,7 @@ class ApiTimelineRetweetsOfMeAction extends ApiAuthAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/Sitemap/actions/noticesitemap.php b/plugins/Sitemap/actions/noticesitemap.php index efa23b9401..fe43f1b331 100644 --- a/plugins/Sitemap/actions/noticesitemap.php +++ b/plugins/Sitemap/actions/noticesitemap.php @@ -45,7 +45,7 @@ class NoticesitemapAction extends SitemapAction var $notices = null; var $j = 0; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/Sitemap/actions/usersitemap.php b/plugins/Sitemap/actions/usersitemap.php index c39165d0ed..42a9d8e237 100644 --- a/plugins/Sitemap/actions/usersitemap.php +++ b/plugins/Sitemap/actions/usersitemap.php @@ -45,7 +45,7 @@ class UsersitemapAction extends SitemapAction var $users = null; var $j = 0; - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/SlicedFavorites/actions/favoritedslice.php b/plugins/SlicedFavorites/actions/favoritedslice.php index 5c9fb31f8f..31e93cd396 100644 --- a/plugins/SlicedFavorites/actions/favoritedslice.php +++ b/plugins/SlicedFavorites/actions/favoritedslice.php @@ -45,7 +45,7 @@ class FavoritedSliceAction extends FavoritedAction * * @todo move queries from showContent() to here */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/TagSub/actions/tagsub.php b/plugins/TagSub/actions/tagsub.php index f9ecaa94af..d3e359099d 100644 --- a/plugins/TagSub/actions/tagsub.php +++ b/plugins/TagSub/actions/tagsub.php @@ -63,7 +63,7 @@ class TagsubAction extends Action * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); if ($this->boolean('ajax')) { diff --git a/plugins/UserFlag/actions/adminprofileflag.php b/plugins/UserFlag/actions/adminprofileflag.php index 708bd99d29..a4d97031ac 100644 --- a/plugins/UserFlag/actions/adminprofileflag.php +++ b/plugins/UserFlag/actions/adminprofileflag.php @@ -52,7 +52,7 @@ class AdminprofileflagAction extends Action * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); diff --git a/plugins/UserFlag/actions/clearflag.php b/plugins/UserFlag/actions/clearflag.php index 28152fb079..040385ed61 100644 --- a/plugins/UserFlag/actions/clearflag.php +++ b/plugins/UserFlag/actions/clearflag.php @@ -49,7 +49,7 @@ class ClearflagAction extends ProfileFormAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { if (!parent::prepare($args)) { return false; diff --git a/plugins/UserFlag/actions/flagprofile.php b/plugins/UserFlag/actions/flagprofile.php index ec036fc064..af02663aae 100644 --- a/plugins/UserFlag/actions/flagprofile.php +++ b/plugins/UserFlag/actions/flagprofile.php @@ -49,7 +49,7 @@ class FlagprofileAction extends ProfileFormAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args = array()) { if (!parent::prepare($args)) { return false; -- 2.39.5