Skip to content

Commit fdbfa02

Browse files
authored
fix(ExAppNotifier): Use empty() instead of count()
more performant Signed-off-by: Marcel Klehr <[email protected]>
1 parent 61bb3d0 commit fdbfa02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)