Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | 4 | public function getUserActiveLinks() |
|
42 | { |
||
43 | 4 | $activeLinks = FileLinks::where('user_id', $this->userID)->where('expire', '>', Carbon::now())->count(); |
|
44 | 4 | Log::debug('Retrieved count of active File Links for User ID'.$this->userID.'. Data - ', ['Active Links' => $activeLinks]); |
|
45 | |||
46 | 4 | return $activeLinks; |
|
47 | } |
||
58 |