From cf999e681cd5e2c932996865cf876b7314812bc2 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 28 Nov 2021 13:58:26 +0000 Subject: [PATCH] Standards --- src/Module/Api/Twitter/Statuses/Update.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Module/Api/Twitter/Statuses/Update.php b/src/Module/Api/Twitter/Statuses/Update.php index 25dbab882..be55cc414 100644 --- a/src/Module/Api/Twitter/Statuses/Update.php +++ b/src/Module/Api/Twitter/Statuses/Update.php @@ -154,16 +154,19 @@ class Update extends BaseApi Photo::setPermissionForRessource($media[0]['resource-id'], $uid, $item['allow_cid'], $item['allow_gid'], $item['deny_cid'], $item['deny_gid']); $ressources[] = $media[0]['resource-id']; - $phototypes = Images::supportedTypes(); - $ext = $phototypes[$media[0]['type']]; + $phototypes = Images::supportedTypes(); + $ext = $phototypes[$media[0]['type']]; - $attachment = ['type' => Post\Media::IMAGE, 'mimetype' => $media[0]['type'], + $attachment = [ + 'type' => Post\Media::IMAGE, + 'mimetype' => $media[0]['type'], 'url' => DI::baseUrl() . '/photo/' . $media[0]['resource-id'] . '-' . $media[0]['scale'] . '.' . $ext, 'size' => $media[0]['datasize'], 'name' => $media[0]['filename'] ?: $media[0]['resource-id'], 'description' => $media[0]['desc'] ?? '', 'width' => $media[0]['width'], - 'height' => $media[0]['height']]; + 'height' => $media[0]['height'] + ]; if (count($media) > 1) { $attachment['preview'] = DI::baseUrl() . '/photo/' . $media[1]['resource-id'] . '-' . $media[1]['scale'] . '.' . $ext;