Skip to content

Commit f1adee0

Browse files
marcelklehrbackportbot[bot]
authored andcommitted
fix(ExAppNotifier): Use empty() instead of count()
more performant Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent c5ec16d commit f1adee0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Notifications/ExAppNotifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function getName(): string {
3636
}
3737

3838
public function prepare(INotification $notification, string $languageCode): INotification {
39-
if (count($this->service->getExAppsList()) === 0) {
39+
if (empty($this->service->getExAppsList())) {
4040
throw new UnknownNotificationException();
4141
}
4242
$exApp = $this->service->getExApp($notification->getApp());

0 commit comments

Comments
 (0)