Browse Source

Merge pull request #8989 from silopolis/spelling_fix

Spelling fix
pull/8996/head
Vitor Mattos 3 years ago
committed by GitHub
parent
commit
0e62b58b53
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      lib/Service/AvatarService.php

4
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())) {

Loading…
Cancel
Save