|
@@ -37,7 +37,7 @@ discard block |
|
|
block discarded – undo |
|
37
|
37
|
$type = $this->option('type'); |
|
38
|
38
|
$force = $this->option('force'); |
|
39
|
39
|
|
|
40
|
|
- if (! in_array($type, ['daily', 'hourly'])) { |
|
|
40
|
+ if (!in_array($type, ['daily', 'hourly'])) { |
|
41
|
41
|
$this->error("Invalid type '{$type}'. Must be 'daily' or 'hourly'."); |
|
42
|
42
|
|
|
43
|
43
|
return Command::FAILURE; |
|
@@ -68,7 +68,7 @@ discard block |
|
|
block discarded – undo |
|
68
|
68
|
$date = Carbon::now()->subDays($i)->format('Y-m-d'); |
|
69
|
69
|
|
|
70
|
70
|
// Check if stats already exist for this date |
|
71
|
|
- if (! $force && UserActivityStat::where('stat_date', $date)->exists()) { |
|
|
71
|
+ if (!$force && UserActivityStat::where('stat_date', $date)->exists()) { |
|
72
|
72
|
$statsSkipped++; |
|
73
|
73
|
$progressBar->advance(); |
|
74
|
74
|
|
|
@@ -128,7 +128,7 @@ discard block |
|
|
block discarded – undo |
|
128
|
128
|
$hour = Carbon::now()->subHours($i)->startOfHour()->format('Y-m-d H:00:00'); |
|
129
|
129
|
|
|
130
|
130
|
// Check if stats already exist for this hour |
|
131
|
|
- if (! $force && DB::table('user_activity_stats_hourly')->where('stat_hour', $hour)->exists()) { |
|
|
131
|
+ if (!$force && DB::table('user_activity_stats_hourly')->where('stat_hour', $hour)->exists()) { |
|
132
|
132
|
$statsSkipped++; |
|
133
|
133
|
$progressBar->advance(); |
|
134
|
134
|
|
Please login to merge, or discard this patch.