Reformatted code
This commit is contained in:
parent
5699b03e8d
commit
fd8f4269ff
14 changed files with 138 additions and 155 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue