return 'acctmove';
}
- function handle($object)
+ function handle($object) : bool
{
list($user, $remote, $password) = $object;
*
* @return
*/
- function handle($data)
+ function handle($data) : bool
{
list($user, $author, $activity, $trusted) = $data;
return 'actmove';
}
- function handle($data)
+ function handle($data) : bool
{
list ($act, $sink, $userURI, $remoteURI) = $data;
return 'deluser';
}
- public function handle($user)
+ public function handle($user) : bool
{
if (!($user instanceof User)) {
common_log(LOG_ERR, "Got a bogus user, not deleting");
* @param Notice $notice
* @return boolean true on success, false on failure
*/
- public function handle(Notice $notice)
+ public function handle(Notice $notice) : bool
{
// We have to manually add attentions to non-profile subs and non-mentions
$ptAtts = $notice->getAttentionsFromProfileTags();
return 'feedimp';
}
- function handle($data)
+ function handle($data) : bool
{
list($user, $xml, $trusted) = $data;
* @param Notice $notice
* @return boolean success
*/
- function handle($notice): bool
+ function handle($notice) : bool
{
if (!($notice instanceof Notice)) {
common_log(LOG_ERR, "Got a bogus notice, not broadcasting");
* @param object $data
* @return boolean success
*/
- function handle($data)
+ function handle($data) : bool
{
return $this->plugin->receiveRawMessage($data);
}
* @param object $data
* @return boolean success
*/
- function handle($data)
+ function handle($data) : bool
{
return $this->plugin->imManager->send_raw_message($data);
}
return 'ping';
}
- function handle($notice): bool
+ function handle($notice) : bool
{
if (!($notice instanceof Notice)) {
common_log(LOG_ERR, "Got a bogus notice, not broadcasting");
return 'plugin';
}
- function handle($notice): bool
+ function handle($notice) : bool
{
if (!($notice instanceof Notice)) {
common_log(LOG_ERR, "Got a bogus notice, not broadcasting");
* @param mixed $object
* @return boolean true on success, false on failure
*/
- function handle($object): bool
+ function handle($object) : bool
{
return true;
}
return 'sms';
}
- function handle($notice): bool
+ function handle($notice) : bool
{
if (!($notice instanceof Notice)) {
common_log(LOG_ERR, "Got a bogus notice, not broadcasting");
*
* @return boolean success value
*/
- function handle($data)
+ function handle($data) : bool
{
list($user, $body) = $data;
*
* @return boolean success value
*/
- function handle($data)
+ function handle($data) : bool
{
$profile = Profile::getKV('id', $data['profile_id']);
* @param array $remitem type of reminder to send and any special options
* @return boolean true on success, false on failure
*/
- function handle($remitem)
+ function handle($remitem) : bool
{
list($type, $opts) = $remitem;
* @param Confirm_address $confirm the confirmation email/code
* @return boolean true on success, false on failure
*/
- function handle($confirm) {
+ function handle($confirm) : bool {
return $this->sendNextReminder($confirm);
}
* @param mixed $object
* @return boolean true on success, false on failure
*/
- function handle($object)
+ function handle($object) : bool
{
$qm = QueueManager::get();
* @param mixed $object
* @return boolean true on success, false on failure
*/
- function handle($user_id)
+ function handle($user_id) : bool
{
// Skip if they've asked not to get summaries
return FeedPoll::QUEUE_CHECK;
}
- public function handle($item)
+ public function handle($item) : bool
{
$feedsub = FeedSub::getKV('id', $item['id']);
if (!$feedsub instanceof FeedSub) {
return 'hubconf';
}
- function handle($data)
+ function handle($data) : bool
{
$sub = $data['sub'];
$mode = $data['mode'];
return 'hubout';
}
- function handle($data)
+ function handle($data) : bool
{
assert(array_key_exists('atom', $data));
assert(is_string($data['atom']));
return 'hubprep';
}
- function handle($data)
+ function handle($data) : bool
{
$topic = $data['topic'];
$atom = $data['atom'];
return 'ostatus';
}
- function handle($notice): bool
+ function handle($notice) : bool
{
if (!($notice instanceof Notice)) {
common_log(LOG_ERR, "Got a bogus notice, not distributing");
return 'pushin';
}
- function handle($data): bool
+ function handle($data) : bool
{
if (!is_array($data)) {
common_log(LOG_ERR, "Got bogus data, not processing");
return 'pushrenew';
}
- function handle($data)
+ function handle($data) : bool
{
$feedsub_id = $data['feedsub_id'];
$feedsub = FeedSub::getKV('id', $feedsub_id);
return 'salmon';
}
- function handle($data)
+ function handle($data) : bool
{
assert(is_array($data));
assert(is_string($data['salmonuri']));
return 'backoff';
}
- function handle($object)
+ function handle($object) : bool
{
$userId = $object;
return 'rsscloud';
}
- function handle($notice): bool
+ function handle($notice) : bool
{
if (!($notice instanceof Notice)) {
common_log(LOG_ERR, "Got a bogus notice, not using");
return true;
}
- function handle($notice)
+ function handle($notice) : bool
{
// Is anybody mirroring?
$mirror = new SubMirror();
return 'mirror';
}
- function handle($notice): bool
+ function handle($notice) : bool
{
if (!($notice instanceof Notice)) {
common_log(LOG_ERR, "Got a bogus notice, not mirroring");
return 'tweetin';
}
- function handle($data)
+ function handle($data) : bool
{
// JSON object with Twitter data
$status = $data['status'];
return 'twitter';
}
- function handle($notice): bool
+ function handle($notice) : bool
{
if (!($notice instanceof Notice)) {
common_log(LOG_ERR, "Got a bogus notice, not broadcasting");
return 'tweetctl';
}
- function handle($data)
+ function handle($data) : bool
{
// A user has activated or deactivated their Twitter bridge
// import status.