1
0
Fork 0

Reformatted code

This commit is contained in:
Roland Häder 2022-06-23 16:03:55 +02:00
commit fd8f4269ff
Signed by: roland
GPG key ID: C82EDE5DDFA0BA77
14 changed files with 138 additions and 155 deletions

View file

@ -261,7 +261,7 @@ class Relation
}
/**
* Returns an array of sugguested contacts for given user id
* Returns an array of suggested contacts for given user id
*
* @param int $uid User id
* @param int $start optional, default 0
@ -288,13 +288,8 @@ class Relation
AND NOT `hidden` AND `network` IN (?, ?, ?, ?)",
$cid,
0,
$uid,
Contact::FRIEND,
Contact::SHARING,
Protocol::ACTIVITYPUB,
Protocol::DFRN,
$diaspora,
$ostatus,
$uid, Contact::FRIEND, Contact::SHARING,
Protocol::ACTIVITYPUB, Protocol::DFRN, $diaspora, $ostatus,
], [
'order' => ['last-item' => true],
'limit' => $totallimit,

View file

@ -82,8 +82,8 @@ class User
/**
* Apply changes from contact update data to user-contact table
*
* @param array $fields Fields
* @param array $condition Conditions
* @param array $fields
* @param array $condition
* @return void
* @throws PDOException
* @throws Exception
@ -106,7 +106,7 @@ class User
DBA::close($contacts);
}
DBA::commit();
DBA::commit();
}
/**