Passed
Push — dev5a ( d46f4b...f24c41 )
by Ron
07:14
created

GetUserList   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getActiveUsers() 0 3 1
A getInactiveUsers() 0 3 1
1
<?php
2
3
namespace App\Domains\User;
4
5
use Illuminate\Support\Facades\Auth;
6
use Illuminate\Support\Facades\Log;
7
8
use App\User;
9
10
11
class GetUserList
12
{
13 4
    public function getActiveUsers()
14
    {
15 4
        return User::with('LastUserLogin')->get()->makeVisible('user_id');
16
    }
17
18 4
    public function getInactiveUsers()
19
    {
20 4
        return User::onlyTrashed()->get()->makeVisible(['user_id', 'deleted_at']);
21
    }
22
}
23