info('Populating steam apps table...'); $service = new SteamService; $stats = $service->populateSteamAppsTable(function ($processed, $total) { if ($processed % 1000 === 0) { $this->info("Processed {$processed} of {$total} apps"); } }); $this->info(sprintf( 'Added %d new steam app(s), %d skipped, %d errors', $stats['inserted'], // @phpstan-ignore offsetAccess.notFound $stats['skipped'], // @phpstan-ignore offsetAccess.notFound $stats['errors'] // @phpstan-ignore offsetAccess.notFound )); } catch (\Exception $e) { $this->error($e->getMessage()); $this->error('There was an error populating the steam_apps table'); } } }