summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-05-05 00:00:29 +0200
committerJoas Schilling <coding@schilljs.com>2023-05-05 00:00:29 +0200
commitf42e430a9c7238e692498eba32e873092330e067 (patch)
treef259ba21a101edaba315a4269425b567a844f0d9 /lib
parentcb67aaadedb7263d7a7e771a8457fd62b8f80ef7 (diff)
fix(CI): Fix Psalm and CS
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/AvatarController.php1
-rw-r--r--lib/Service/AvatarService.php2
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/Controller/AvatarController.php b/lib/Controller/AvatarController.php
index b069975c0..20b5eab51 100644
--- a/lib/Controller/AvatarController.php
+++ b/lib/Controller/AvatarController.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCA\Talk\Controller;
use InvalidArgumentException;
-use OCA\Mail\Service\Avatar\Avatar;
use OCA\Talk\Middleware\Attribute\RequireModeratorParticipant;
use OCA\Talk\Middleware\Attribute\RequireParticipant;
use OCA\Talk\Service\AvatarService;
diff --git a/lib/Service/AvatarService.php b/lib/Service/AvatarService.php
index 02871f321..b346404e1 100644
--- a/lib/Service/AvatarService.php
+++ b/lib/Service/AvatarService.php
@@ -237,7 +237,7 @@ class AvatarService {
return new InMemoryFile($token, file_get_contents($this->getAvatarPath($room, $darkTheme)));
}
- protected function getEmojiAvatar(string $emoji, ?string $fillColor): string {
+ protected function getEmojiAvatar(string $emoji, string $fillColor): string {
return str_replace([
'{letter}',
'{fill}',