Passed
Pull Request — master (#53)
by yasin
04:07
created

Lists::roleUpdated()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php
2
3
namespace EasyPanel\Http\Livewire\Admins;
4
5
use EasyPanel\Support\Contract\UserProviderFacade;
6
use Livewire\Component;
7
use Livewire\WithPagination;
8
9
class Lists extends Component
10
{
11
    use WithPagination;
12
13
    protected $paginationTheme = 'bootstrap';
14
15
    // protected $listeners = ['adminUpdated'];
16
17
    public function roleUpdated()
18
    {
19
        // There is nothing to do, just update It.
20
    }
21
22
    public function render()
23
    {
24
        $admins = UserProviderFacade::paginateAdmins();
0 ignored issues
show
Bug introduced by
The method paginateAdmins() does not exist on EasyPanel\Support\Contract\UserProviderFacade. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

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

24
        /** @scrutinizer ignore-call */ 
25
        $admins = UserProviderFacade::paginateAdmins();
Loading history...
25
26
        return view('admin::livewire.admins.lists', compact('admins'))
27
            ->layout('admin::layouts.app', ['title' => __('ListTitle', ['name' => __('Admins')])]);
28
    }
29
}
30