Passed
Push — master ( d2ddcd...7d7316 )
by Reza
04:17
created

GetAdmins   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 6 2
1
<?php
2
3
namespace EasyPanel\Commands\UserActions;
4
5
use EasyPanel\Support\Contract\UserProviderFacade;
6
use Illuminate\Console\Command;
7
8
class GetAdmins extends Command
9
{
10
11
    protected $description = 'Get Admins list';
12
    protected $signature = 'panel:admins';
13
14
    public function handle()
15
    {
16
        $admins = UserProviderFacade::getAdmins();
17
        $this->warn('Admin Lists :');
18
        foreach ($admins as $admin){
19
            $this->warn("• {$admin->name}: {$admin->email}");
20
        }
21
    }
22
}
23