Completed
Push — Framework-Dependencies-Upgrade ( 998813...01c962 )
by Sheela
07:38
created

TrainingUsers   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 11
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getList() 0 8 1
1
<?php
2
3
namespace SET\Handlers\Calendar;
4
5
use Illuminate\Database\Eloquent\Collection;
6
use SET\TrainingUser;
7
8
class TrainingUsers extends CollectionList
9
{
10 9
    public function getList() : Collection
11
    {
12 9
        return TrainingUser::with('user', 'training')
13 9
            ->whereBetween('due_date', [$this->start, $this->end])
14 9
            ->whereNull('completed_date')
15 9
            ->orderBy('training_id')
16 9
            ->get();
17
    }
18
}
19