From: Michael Date: Mon, 23 May 2022 12:44:21 +0000 (+0000) Subject: Some more code beauty X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=68599c7efa47ffd5d7d165f53cbe98234b5d8b22;p=friendica.git Some more code beauty --- diff --git a/src/Console/MoveToAvatarCache.php b/src/Console/MoveToAvatarCache.php index 49fb9c9243..f158c93400 100644 --- a/src/Console/MoveToAvatarCache.php +++ b/src/Console/MoveToAvatarCache.php @@ -92,8 +92,8 @@ HELP; echo ++$count . '/' . $total . "\t" . $contact['id'] . "\t" . $contact['url'] . "\t"; $resourceid = Photo::ridFromURI($contact['photo']); if (empty($resourceid)) { - echo $this->l10n->t('no resource') . "\n"; - continue; + echo $this->l10n->t('no resource') . "\n"; + continue; } echo '1'; $photo = Photo::selectFirst([], ['resource-id' => $resourceid], ['order' => ['scale']]); @@ -105,14 +105,14 @@ HELP; echo '2'; $imgdata = Photo::getImageDataForPhoto($photo); if (empty($imgdata)) { - echo $this->l10n->t('no image data') . "\n"; - continue; + echo $this->l10n->t('no image data') . "\n"; + continue; } echo '3'; $image = new Image($imgdata, Images::getMimeTypeByData($imgdata)); if (!$image->isValid()) { - echo $this->l10n->t('invalid image') . "\n"; - continue; + echo $this->l10n->t('invalid image') . "\n"; + continue; } echo '4'; @@ -121,7 +121,7 @@ HELP; Contact::update($fields, ['uri-id' => $contact['uri-id']]); echo '6'; Photo::delete(['resource-id' => $resourceid]); - echo ' '.$fields['photo'] . "\n"; + echo ' ' . $fields['photo'] . "\n"; } return 0;