Passed
Push — master ( ec9015...97207f )
by Reza
04:10
created

GetAdmins::handle()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
c 1
b 0
f 1
dl 0
loc 6
rs 10
cc 2
nc 2
nop 0
1
<?php
2
3
4
namespace EasyPanel\Commands;
5
6
7
use EasyPanel\Support\Contract\UserProviderFacade;
8
use Illuminate\Console\Command;
9
10
class GetAdmins extends Command
11
{
12
13
    protected $description = 'Get Admins list';
14
15
    protected $signature = 'panel:admins';
16
17
    public function handle()
18
    {
19
        $admins = UserProviderFacade::getAdmins();
20
        $this->warn('Admin Lists :');
21
        foreach ($admins as $admin){
22
            $this->warn("• {$admin->name}: {$admin->email}");
23
        }
24
    }
25
}
26