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

GetUserList::getInactiveUsers()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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