mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 01:36:53 +08:00
Make linter happy
This commit is contained in:
parent
ce094be83e
commit
295f29e53e
|
@ -466,7 +466,7 @@ class User extends Model
|
|||
*/
|
||||
public function getNewNotificationsCount()
|
||||
{
|
||||
return $this->getUnreadNotifications()->filter(function($notification) {
|
||||
return $this->getUnreadNotifications()->filter(function ($notification) {
|
||||
return $notification->time > $this->notifications_read_time ?: 0;
|
||||
})->count();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user