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

This commit is contained in:
Mikael Nordfeldth 2013-10-29 10:26:46 +01:00
parent 2dfa0bfcee
commit f8b49e69d0
45 changed files with 45 additions and 45 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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'));

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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'));

View File

@ -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);

View File

@ -74,7 +74,7 @@ class NewmessageAction extends FormAction
* @return void
*/
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);

View File

@ -47,7 +47,7 @@ class RepeatAction extends Action
protected $needLogin = true;
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);

View File

@ -57,7 +57,7 @@ class ShowstreamAction extends ProfileAction
{
var $notice;
protected function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);