Skip to content

Commit 2b24c89

Browse files
Julien NahumJulien Nahum
Julien Nahum
authored and
Julien Nahum
committed
Merge branch 'main' of https://github.com/JhumanJ/laravel-model-stats into main
2 parents bb5cef4 + 52c0a86 commit 2b24c89

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Http/Controllers/HomeController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ private function modelStatsConfig()
2222
return [
2323
'appName' => config('app.name'),
2424
'path' => config('model-stats.routes_prefix'),
25-
'frontEndVersion' => 3
25+
'frontEndVersion' => 3,
2626
];
2727
}
2828

src/Http/Requests/Widgets/DataRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class DataRequest extends FormRequest
1515
const ALLOWED_AGGREGATES_TYPES = [
1616
'daily_count',
1717
'cumulated_daily_count',
18-
'period_total'
18+
'period_total',
1919
];
2020

2121
/**

src/Services/ModelStats.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function getPeriodTotal(
6767

6868
return [
6969
'current_period' => $periodCount,
70-
'previous_period' => $previousPeriodCount
70+
'previous_period' => $previousPeriodCount,
7171
];
7272
}
7373

@@ -82,7 +82,7 @@ public static function fillMissingDays($data, Carbon $since, Carbon $to, $defaul
8282

8383
foreach (array_reverse(range(0, $daysSince)) as $number) {
8484
$dateKey = Carbon::now()->subDays($number)->format('Y-m-d');
85-
if (!isset($data[$dateKey])) {
85+
if (! isset($data[$dateKey])) {
8686
$data[$dateKey] = $defaultValue;
8787
}
8888

0 commit comments

Comments
 (0)