From: Michael Date: Sat, 5 Dec 2020 21:58:15 +0000 (+0000) Subject: Code standards X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=878a418c6b5585a69a713de662dfbdca2a4a6d90;p=friendica.git Code standards --- diff --git a/src/Worker/RemoveUnusedContacts.php b/src/Worker/RemoveUnusedContacts.php index 383a4485f5..c2a0719870 100644 --- a/src/Worker/RemoveUnusedContacts.php +++ b/src/Worker/RemoveUnusedContacts.php @@ -29,8 +29,10 @@ use Friendica\Model\Photo; /** * Removes public contacts that aren't in use */ -class RemoveUnusedContacts { - public static function execute() { +class RemoveUnusedContacts +{ + public static function execute() + { $condition = ["`uid` = ? AND NOT `self` AND NOT `nurl` IN (SELECT `nurl` FROM `contact` WHERE `uid` != ?) AND (NOT `network` IN (?, ?, ?, ?, ?, ?) OR (`archive` AND `success_update` < UTC_TIMESTAMP() - INTERVAL ? DAY)) AND NOT `id` IN (SELECT `author-id` FROM `item`) AND NOT `id` IN (SELECT `owner-id` FROM `item`)