Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class GetTechTipStats |
||
13 | { |
||
14 | 4 | public function getTipsInLastDays($numDays = 30) |
|
15 | { |
||
16 | 4 | $tips = TechTips::where('created_at', '>', Carbon::now()->subDays($numDays))->count(); |
|
17 | 4 | Log::debug('Retrieved new Tech Tip count for last '.$numDays.' days. Count - $tips'); |
|
18 | |||
19 | 4 | return $tips; |
|
20 | } |
||
21 | |||
22 | 4 | public function getTotalTipsCount() |
|
28 | } |
||
29 | } |
||
30 |