]> git.mxchange.org Git - friendica.git/commitdiff
Don't use a newline at the end
authorMichael <heluecht@pirati.ca>
Tue, 24 May 2022 17:51:28 +0000 (17:51 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 24 May 2022 17:51:28 +0000 (17:51 +0000)
src/Console/MoveToAvatarCache.php

index b4684859713daeeea81a435a03be4ae22d6945b8..4ccb1b95983bc5a077ace1db67e7e6c0e03486dd 100644 (file)
@@ -90,7 +90,7 @@ 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 in photo %s', $contact['photo']) . "\n";
+                               echo $this->l10n->t('no resource in photo %s', $contact['photo']) . ' ';
                                $valid = false;
                        }
 
@@ -98,7 +98,7 @@ HELP;
                                echo '1';
                                $photo = Photo::selectFirst([], ['resource-id' => $resourceid], ['order' => ['scale']]);
                                if (empty($photo)) {
-                                       echo ' ' . $this->l10n->t('no photo with id %s', $resourceid) . "\n";
+                                       echo ' ' . $this->l10n->t('no photo with id %s', $resourceid) . ' ';
                                        $valid = false;
                                }
                        }
@@ -107,7 +107,7 @@ HELP;
                                echo '2';
                                $imgdata = Photo::getImageDataForPhoto($photo);
                                if (empty($imgdata)) {
-                                       echo ' ' . $this->l10n->t('no image data for photo with id %s', $resourceid) . "\n";
+                                       echo ' ' . $this->l10n->t('no image data for photo with id %s', $resourceid) . ' ';
                                        $valid = false;
                                }
                        }
@@ -116,7 +116,7 @@ HELP;
                                echo '3';
                                $image = new Image($imgdata, Images::getMimeTypeByData($imgdata));
                                if (!$image->isValid()) {
-                                       echo ' ' . $this->l10n->t('invalid image for id %s', $resourceid) . "\n";
+                                       echo ' ' . $this->l10n->t('invalid image for id %s', $resourceid) . ' ';
                                        $valid = false;
                                }
                        }