Fix more standards

This commit is contained in:
Michael 2023-02-13 23:53:43 +00:00
parent 2367f54d41
commit c643eb8cb2

View file

@ -140,7 +140,7 @@ class ClientToServer
* @param array $ldactivity * @param array $ldactivity
* @return array * @return array
*/ */
private static function updateContent(int $uid, string $object_id, array $application, array $ldactivity):array private static function updateContent(int $uid, string $object_id, array $application, array $ldactivity): array
{ {
$id = Item::fetchByLink($object_id, $uid); $id = Item::fetchByLink($object_id, $uid);
$original_post = Post::selectFirst(['uri-id'], ['uid' => $uid, 'origin' => true, 'id' => $id]); $original_post = Post::selectFirst(['uri-id'], ['uid' => $uid, 'origin' => true, 'id' => $id]);
@ -325,7 +325,10 @@ class ClientToServer
*/ */
public static function getOutbox(array $owner, int $uid, int $page = null, int $max_id = null, string $requester = ''): array public static function getOutbox(array $owner, int $uid, int $page = null, int $max_id = null, string $requester = ''): array
{ {
$condition = ['gravity' => [Item::GRAVITY_PARENT, Item::GRAVITY_COMMENT], 'private' => [Item::PUBLIC, Item::UNLISTED]]; $condition = [
'gravity' => [Item::GRAVITY_PARENT, Item::GRAVITY_COMMENT],
'private' => [Item::PUBLIC, Item::UNLISTED]
];
if (!empty($requester)) { if (!empty($requester)) {
$requester_id = Contact::getIdForURL($requester, $owner['uid']); $requester_id = Contact::getIdForURL($requester, $owner['uid']);