| Total Complexity | 4 | 
| Total Lines | 45 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 9 | class SendingTrend extends Trend | ||
| 10 | { | ||
| 11 | /** | ||
| 12 | * Calculate the value of the metric. | ||
| 13 | * | ||
| 14 | * @param \Illuminate\Http\Request $request | ||
| 15 | * @return mixed | ||
| 16 | */ | ||
| 17 | 1 | public function calculate(Request $request) | |
| 18 |     { | ||
| 19 | 1 | return $this->countByDays($request, FormEntry::class); | |
| 20 | } | ||
| 21 | |||
| 22 | /** | ||
| 23 | * Get the ranges available for the metric. | ||
| 24 | * | ||
| 25 | * @return array | ||
| 26 | */ | ||
| 27 | 1 | public function ranges() | |
| 33 | 1 | ]; | |
| 34 | } | ||
| 35 | |||
| 36 | /** | ||
| 37 | * Get the URI key for the metric. | ||
| 38 | * | ||
| 39 | * @return string | ||
| 40 | */ | ||
| 41 | 1 | public function uriKey() | |
| 42 |     { | ||
| 43 | 1 | return 'form-entries-per-day'; | |
| 44 | } | ||
| 45 | |||
| 46 | /** | ||
| 47 | * Determine for how many minutes the metric should be cached. | ||
| 48 | * | ||
| 49 | * @return \DateTimeInterface|\DateInterval|float|int | ||
| 50 | */ | ||
| 51 | 1 | public function cacheFor() | |
| 54 | } | ||
| 55 | } | ||
| 56 |