diff --git a/lib/Service/AvatarService.php b/lib/Service/AvatarService.php index c05d27a0c0..a5e8c6213e 100644 --- a/lib/Service/AvatarService.php +++ b/lib/Service/AvatarService.php @@ -70,7 +70,7 @@ class AvatarService { public function setAvatarFromRequest(Room $room, ?array $file): void { if ($room->getType() === Room::TYPE_ONE_TO_ONE || $room->getType() === Room::TYPE_ONE_TO_ONE_FORMER) { - throw new InvalidArgumentException($this->l->t('One to one rooms always need to show the other users avatar')); + throw new InvalidArgumentException($this->l->t('One-to-one rooms always need to show the other users avatar')); } if (is_null($file) || !is_array($file)) { @@ -98,7 +98,7 @@ class AvatarService { public function setAvatar(Room $room, \OC_Image $image): void { if ($room->getType() === Room::TYPE_ONE_TO_ONE || $room->getType() === Room::TYPE_ONE_TO_ONE_FORMER) { - throw new InvalidArgumentException($this->l->t('One to one rooms always need to show the other users avatar')); + throw new InvalidArgumentException($this->l->t('One-to-one rooms always need to show the other users avatar')); } $image->fixOrientation(); if (!($image->height() === $image->width())) {