Test Failed
Push — master ( 7405ac...f937f1 )
by Burak
05:02
created

Index   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 4 1
1
<?php
2
3
namespace App\Http\Livewire\Notification;
4
5
use Illuminate\Support\Facades\Auth;
6
use Livewire\Component;
7
8
class Index extends Component
9
{
10
    public function render()
11
    {
12
        return view('livewire.notification.index', [
13
            'notifications' => Auth::user()->unreadNotifications()->paginate(),
0 ignored issues
show
Bug introduced by
The method unreadNotifications() does not exist on Illuminate\Contracts\Auth\Authenticatable. It seems like you code against a sub-type of Illuminate\Contracts\Auth\Authenticatable such as Illuminate\Foundation\Auth\User. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

13
            'notifications' => Auth::user()->/** @scrutinizer ignore-call */ unreadNotifications()->paginate(),
Loading history...
14
        ]);
15
    }
16
}
17