From d0b9eff8eb25694db0cbaa7fa8203b8b6d3c4c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 10 Dec 2014 00:15:48 +0100 Subject: [PATCH] Fix code style --- file/lib/system/menu/page/ChatPageMenuItemProvider.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php b/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php index 70fb76c..8643021 100644 --- a/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php +++ b/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php @@ -87,6 +87,8 @@ public function getNotifications() { if (!CHAT_ENABLE_MENU_BADGE) return 0; $rooms = $this->getRooms(); - return array_reduce($rooms, function ($carry, $room) { return $carry + count($room->getUsers()); }, 0); + return array_reduce($rooms, function ($carry, $room) { + return $carry + count($room->getUsers()); + }, 0); } }