Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
40 | 2 | public function handle() |
|
41 | { |
||
42 | 2 | $this->visits = Visit::with('user') |
|
43 | 2 | ->whereBetween('expiration_date', [ |
|
44 | 2 | Carbon::today()->subDay()->toDateString(), Carbon::today()->addWeek()->toDateString(), |
|
45 | ]) |
||
46 | 2 | ->activeUsers() |
|
47 | 2 | ->orderBy('expiration_date') |
|
48 | 2 | ->get(); |
|
49 | |||
50 | 2 | return $this; |
|
51 | } |
||
52 | |||
58 |