mirror of
https://github.com/flarum/core.git
synced 2025-07-08 02:23:30 +02:00
Make linter happy
This commit is contained in:
@ -466,7 +466,7 @@ class User extends Model
|
|||||||
*/
|
*/
|
||||||
public function getNewNotificationsCount()
|
public function getNewNotificationsCount()
|
||||||
{
|
{
|
||||||
return $this->getUnreadNotifications()->filter(function($notification) {
|
return $this->getUnreadNotifications()->filter(function ($notification) {
|
||||||
return $notification->time > $this->notifications_read_time ?: 0;
|
return $notification->time > $this->notifications_read_time ?: 0;
|
||||||
})->count();
|
})->count();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user