From 34ced392e3da0713bee4043b7995c774bf2cbaf6 Mon Sep 17 00:00:00 2001 From: Taylor Broad Date: Tue, 3 Dec 2024 21:49:58 +0900 Subject: [PATCH] Style fixes --- .../2024_12_03_093851_add_sources_to_acars_table.php | 3 +-- app/Http/Controllers/Api/AcarsController.php | 3 ++- app/Models/Enums/AcarsSource.php | 11 +++++------ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/app/Database/migrations/2024_12_03_093851_add_sources_to_acars_table.php b/app/Database/migrations/2024_12_03_093851_add_sources_to_acars_table.php index 679868593..8135191b3 100644 --- a/app/Database/migrations/2024_12_03_093851_add_sources_to_acars_table.php +++ b/app/Database/migrations/2024_12_03_093851_add_sources_to_acars_table.php @@ -4,8 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration -{ +return new class() extends Migration { /** * Run the migrations. */ diff --git a/app/Http/Controllers/Api/AcarsController.php b/app/Http/Controllers/Api/AcarsController.php index b1da0af7b..761a8eb1a 100644 --- a/app/Http/Controllers/Api/AcarsController.php +++ b/app/Http/Controllers/Api/AcarsController.php @@ -71,9 +71,10 @@ function ($pirep) { return PirepResource::collection($pireps); } - + /** * Gets all the supported acars sources in the AcarsSource Enum + * * @return void */ public function get_supported_acars_sources() diff --git a/app/Models/Enums/AcarsSource.php b/app/Models/Enums/AcarsSource.php index 082d519be..ab2431291 100644 --- a/app/Models/Enums/AcarsSource.php +++ b/app/Models/Enums/AcarsSource.php @@ -6,18 +6,17 @@ /** * Notice for 3rd party developers. - * + * * This file defines the master integer value for sourcing of telemetry, logs, etc. - * + * * If you are a developer and want to add your software to this file, please make a pull request with your change to the phpVMS repository, * even if you don't intend to release your software publicly and will only be used by your community/VA. This way, integer values will not * conflict across systems. - * + * * When adding your client, please follow the comment formatting so that developers know, at a glance, who maintains the specific software. - * + * * Company Name or Real Name (github) */ - class AcarsSource extends Enum { /* Desktop Based Clients */ @@ -34,4 +33,4 @@ class AcarsSource extends Enum self::VATSIM => 'VATSIM', self::IVAO => 'IVAO', ]; -} \ No newline at end of file +}