Lists::render()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 6
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
    public function render()
16
    {
17
        $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

17
        /** @scrutinizer ignore-call */ 
18
        $admins = UserProviderFacade::paginateAdmins();
Loading history...
18
19
        return view('admin::livewire.admins.lists', compact('admins'))
20
            ->layout('admin::layouts.app', ['title' => __('ListTitle', ['name' => __('Admins')])]);
21
    }
22
}
23