Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix(ExAppNotifier): Use empty() instead of count()
more performant

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr authored and backportbot[bot] committed Oct 6, 2025
commit f1adee0d99595f76a513321bed2c12f104edf6f5
2 changes: 1 addition & 1 deletion lib/Notifications/ExAppNotifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getName(): string {
}

public function prepare(INotification $notification, string $languageCode): INotification {
if (count($this->service->getExAppsList()) === 0) {
if (empty($this->service->getExAppsList())) {
throw new UnknownNotificationException();
}
$exApp = $this->service->getExApp($notification->getApp());
Expand Down