diff --git a/app/Console/Commands/UserSeasonScoresRecalculate.php b/app/Console/Commands/UserSeasonScoresRecalculate.php index 6ac5d61e9be..7ed541c50b1 100644 --- a/app/Console/Commands/UserSeasonScoresRecalculate.php +++ b/app/Console/Commands/UserSeasonScoresRecalculate.php @@ -3,6 +3,8 @@ // Copyright (c) ppy Pty Ltd . Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. +declare(strict_types=1); + namespace App\Console\Commands; use App\Models\Multiplayer\UserScoreAggregate; @@ -15,7 +17,7 @@ class UserSeasonScoresRecalculate extends Command protected $signature = 'user-season-scores:recalculate {--season-id=}'; protected $description = 'Recalculate user scores for all active seasons or a specified season.'; - public function handle() + public function handle(): void { $seasonId = $this->option('season-id'); @@ -30,7 +32,7 @@ public function handle() } } - protected function recalculate(Season $season) + protected function recalculate(Season $season): void { $scoreUserIds = UserScoreAggregate::whereIn('room_id', $season->rooms->pluck('id')) ->select('user_id') diff --git a/app/Models/SeasonScoreFactor.php b/app/Models/SeasonScoreFactor.php index aff70c8fa59..bd270094fa8 100644 --- a/app/Models/SeasonScoreFactor.php +++ b/app/Models/SeasonScoreFactor.php @@ -3,6 +3,8 @@ // Copyright (c) ppy Pty Ltd . Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. +declare(strict_types=1); + namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; diff --git a/app/Models/UserSeasonScore.php b/app/Models/UserSeasonScore.php index 8db18613e40..6ae74840caf 100644 --- a/app/Models/UserSeasonScore.php +++ b/app/Models/UserSeasonScore.php @@ -3,6 +3,8 @@ // Copyright (c) ppy Pty Ltd . Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. +declare(strict_types=1); + namespace App\Models; use App\Exceptions\InvariantException; diff --git a/database/migrations/2024_10_22_190453_create_user_season_scores_table.php b/database/migrations/2024_10_22_190453_create_user_season_scores_table.php index 9404fe4a539..cd7045105c5 100644 --- a/database/migrations/2024_10_22_190453_create_user_season_scores_table.php +++ b/database/migrations/2024_10_22_190453_create_user_season_scores_table.php @@ -3,6 +3,8 @@ // Copyright (c) ppy Pty Ltd . Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. +declare(strict_types=1); + use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; diff --git a/database/migrations/2024_10_22_194840_add_parent_id_to_rooms.php b/database/migrations/2024_10_22_194840_add_parent_id_to_rooms.php index 80055d0c4a8..409b0f77007 100644 --- a/database/migrations/2024_10_22_194840_add_parent_id_to_rooms.php +++ b/database/migrations/2024_10_22_194840_add_parent_id_to_rooms.php @@ -3,6 +3,8 @@ // Copyright (c) ppy Pty Ltd . Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. +declare(strict_types=1); + use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; diff --git a/database/migrations/2024_10_23_173228_create_season_score_factors_table.php b/database/migrations/2024_10_23_173228_create_season_score_factors_table.php index 699ab950b29..9adca317b84 100644 --- a/database/migrations/2024_10_23_173228_create_season_score_factors_table.php +++ b/database/migrations/2024_10_23_173228_create_season_score_factors_table.php @@ -3,6 +3,8 @@ // Copyright (c) ppy Pty Ltd . Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. +declare(strict_types=1); + use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema;