From a176ed2dae98cfaccf6b15f50b7c3c8b53a4de6a Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Tue, 18 Jun 2019 22:58:09 +0000 Subject: [PATCH] Apply fixes from StyleCI --- app/Http/Controllers/Api/PirepController.php | 4 ++-- app/Services/DatabaseService.php | 4 ++-- app/Services/ImportService.php | 2 +- app/Support/Database.php | 4 ++-- resources/lang/en/aircraft.php | 1 - resources/lang/en/airports.php | 1 - resources/lang/en/common.php | 1 - resources/lang/en/dashboard.php | 1 - resources/lang/en/downloads.php | 1 - resources/lang/en/email.php | 1 - resources/lang/en/errors.php | 1 - resources/lang/en/expenses.php | 1 - resources/lang/en/flights.php | 1 - resources/lang/en/home.php | 1 - resources/lang/en/pireps.php | 1 - resources/lang/en/profile.php | 1 - resources/lang/en/toc.php | 1 - resources/lang/en/user.php | 1 - resources/lang/en/widgets.php | 1 - resources/lang/es/aircraft.php | 1 - resources/lang/es/airports.php | 1 - resources/lang/es/common.php | 1 - resources/lang/es/dashboard.php | 1 - resources/lang/es/downloads.php | 1 - resources/lang/es/email.php | 1 - resources/lang/es/errors.php | 1 - resources/lang/es/expenses.php | 1 - resources/lang/es/flights.php | 1 - resources/lang/es/home.php | 1 - resources/lang/es/pireps.php | 1 - resources/lang/es/profile.php | 1 - resources/lang/es/toc.php | 1 - resources/lang/es/user.php | 1 - resources/lang/es/widgets.php | 1 - resources/lang/it/aircraft.php | 1 - resources/lang/it/airports.php | 1 - resources/lang/it/common.php | 1 - resources/lang/it/dashboard.php | 1 - resources/lang/it/downloads.php | 1 - resources/lang/it/email.php | 1 - resources/lang/it/errors.php | 1 - resources/lang/it/expenses.php | 1 - resources/lang/it/flights.php | 1 - resources/lang/it/home.php | 1 - resources/lang/it/pireps.php | 1 - resources/lang/it/profile.php | 1 - resources/lang/it/toc.php | 1 - resources/lang/it/user.php | 1 - resources/lang/it/widgets.php | 1 - tests/SubfleetTest.php | 1 - 50 files changed, 7 insertions(+), 53 deletions(-) diff --git a/app/Http/Controllers/Api/PirepController.php b/app/Http/Controllers/Api/PirepController.php index 096b59983..8bc068c08 100644 --- a/app/Http/Controllers/Api/PirepController.php +++ b/app/Http/Controllers/Api/PirepController.php @@ -396,7 +396,7 @@ public function cancel($pirep_id, Request $request) /** * Add a new comment * - * @param $id + * @param $id * * @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection */ @@ -464,7 +464,7 @@ public function fields_post($pirep_id, FieldsRequest $request) } /** - * @param $id + * @param $id * * @throws \UnexpectedValueException * @throws \InvalidArgumentException diff --git a/app/Services/DatabaseService.php b/app/Services/DatabaseService.php index 9ab70b8a9..7f724e7ae 100644 --- a/app/Services/DatabaseService.php +++ b/app/Services/DatabaseService.php @@ -58,8 +58,8 @@ public function seed_from_yaml($yml, $ignore_errors = false): array } /** - * @param $table - * @param $row + * @param $table + * @param $row * * @throws \Exception * diff --git a/app/Services/ImportService.php b/app/Services/ImportService.php index 9e74a23ae..07afe8d1f 100644 --- a/app/Services/ImportService.php +++ b/app/Services/ImportService.php @@ -59,7 +59,7 @@ protected function throwError($error, \Exception $e = null): void } /** - * @param $csv_file + * @param $csv_file * * @throws ValidationException * diff --git a/app/Support/Database.php b/app/Support/Database.php index 6accf2251..42bde6fc4 100644 --- a/app/Support/Database.php +++ b/app/Support/Database.php @@ -66,8 +66,8 @@ public static function seed_from_yaml($yml, $ignore_errors = false): array } /** - * @param $table - * @param $row + * @param $table + * @param $row * * @throws \Exception * diff --git a/resources/lang/en/aircraft.php b/resources/lang/en/aircraft.php index 9991e15f7..278862b68 100644 --- a/resources/lang/en/aircraft.php +++ b/resources/lang/en/aircraft.php @@ -1,6 +1,5 @@ [ 'active' => 'Active', diff --git a/resources/lang/en/airports.php b/resources/lang/en/airports.php index 9edc5cc10..32535ef5b 100644 --- a/resources/lang/en/airports.php +++ b/resources/lang/en/airports.php @@ -1,6 +1,5 @@ 'Identification', 'home' => 'Home Airport', diff --git a/resources/lang/en/common.php b/resources/lang/en/common.php index e8b5859a8..4cf9a4e2a 100644 --- a/resources/lang/en/common.php +++ b/resources/lang/en/common.php @@ -1,6 +1,5 @@ 'Dashboard', 'administration' => 'Administration', diff --git a/resources/lang/en/dashboard.php b/resources/lang/en/dashboard.php index 28dbc0ae0..7b616c063 100644 --- a/resources/lang/en/dashboard.php +++ b/resources/lang/en/dashboard.php @@ -1,6 +1,5 @@ 'Total Hours', 'yourbalance' => 'Your Balance', diff --git a/resources/lang/en/downloads.php b/resources/lang/en/downloads.php index adb145f65..618dcfecf 100644 --- a/resources/lang/en/downloads.php +++ b/resources/lang/en/downloads.php @@ -1,6 +1,5 @@ 'There are no downloads!', ]; diff --git a/resources/lang/en/email.php b/resources/lang/en/email.php index bfce5ac08..ca483c883 100644 --- a/resources/lang/en/email.php +++ b/resources/lang/en/email.php @@ -1,6 +1,5 @@ 'If you’re having trouble clicking the ":actiontext" button, '. 'copy and paste the URL below into your web browser:', diff --git a/resources/lang/en/errors.php b/resources/lang/en/errors.php index 7806f398c..22c3bc8f1 100644 --- a/resources/lang/en/errors.php +++ b/resources/lang/en/errors.php @@ -1,6 +1,5 @@ [ 'title' => 'Unauthorized Access', diff --git a/resources/lang/en/expenses.php b/resources/lang/en/expenses.php index 52c78f677..950e2fa75 100644 --- a/resources/lang/en/expenses.php +++ b/resources/lang/en/expenses.php @@ -1,6 +1,5 @@ [ 'flight' => 'Flight', diff --git a/resources/lang/en/flights.php b/resources/lang/en/flights.php index efc9d9e55..cf6afbbe8 100644 --- a/resources/lang/en/flights.php +++ b/resources/lang/en/flights.php @@ -1,6 +1,5 @@ 'Flight Number', 'flighttime' => 'Flight Time', diff --git a/resources/lang/en/home.php b/resources/lang/en/home.php index c94e5861c..b945a5b47 100644 --- a/resources/lang/en/home.php +++ b/resources/lang/en/home.php @@ -1,6 +1,5 @@ [ 'title' => 'Welcome!', diff --git a/resources/lang/en/pireps.php b/resources/lang/en/pireps.php index 80a73a5df..d79164f96 100644 --- a/resources/lang/en/pireps.php +++ b/resources/lang/en/pireps.php @@ -1,6 +1,5 @@ 'New Flight Report', 'editflightreport' => 'Edit Flight Report', diff --git a/resources/lang/en/profile.php b/resources/lang/en/profile.php index 996b32b72..93697347e 100644 --- a/resources/lang/en/profile.php +++ b/resources/lang/en/profile.php @@ -1,6 +1,5 @@ 'This avatar will be resized to :width x :height pixels', diff --git a/resources/lang/en/toc.php b/resources/lang/en/toc.php index afea70f5a..95f97070c 100644 --- a/resources/lang/en/toc.php +++ b/resources/lang/en/toc.php @@ -1,6 +1,5 @@ 'Terms and Conditions', ]; diff --git a/resources/lang/en/user.php b/resources/lang/en/user.php index d985fc14e..7718936a5 100644 --- a/resources/lang/en/user.php +++ b/resources/lang/en/user.php @@ -1,6 +1,5 @@ 'Location', 'state' => [ diff --git a/resources/lang/en/widgets.php b/resources/lang/en/widgets.php index 0a8cf62ad..86293dc88 100644 --- a/resources/lang/en/widgets.php +++ b/resources/lang/en/widgets.php @@ -1,6 +1,5 @@ [ 'news' => 'News', diff --git a/resources/lang/es/aircraft.php b/resources/lang/es/aircraft.php index 7de306248..0064c1438 100644 --- a/resources/lang/es/aircraft.php +++ b/resources/lang/es/aircraft.php @@ -1,6 +1,5 @@ [ 'active' => 'Activo', diff --git a/resources/lang/es/airports.php b/resources/lang/es/airports.php index 0ca454fd4..b06acf453 100644 --- a/resources/lang/es/airports.php +++ b/resources/lang/es/airports.php @@ -1,6 +1,5 @@ 'Identificación', 'home' => 'Aeropuerto inicial', diff --git a/resources/lang/es/common.php b/resources/lang/es/common.php index 3d0d8d90d..0691a542c 100644 --- a/resources/lang/es/common.php +++ b/resources/lang/es/common.php @@ -1,6 +1,5 @@ 'Tablero', 'administration' => 'Administración', diff --git a/resources/lang/es/dashboard.php b/resources/lang/es/dashboard.php index fe0c1d14e..43bf8d526 100644 --- a/resources/lang/es/dashboard.php +++ b/resources/lang/es/dashboard.php @@ -1,6 +1,5 @@ 'Horas totales', 'yourbalance' => 'Tu balance', diff --git a/resources/lang/es/downloads.php b/resources/lang/es/downloads.php index 51fe4de6f..54516636b 100644 --- a/resources/lang/es/downloads.php +++ b/resources/lang/es/downloads.php @@ -1,6 +1,5 @@ '¡No hay descargas!', ]; diff --git a/resources/lang/es/email.php b/resources/lang/es/email.php index f47919ebb..d4a5be961 100644 --- a/resources/lang/es/email.php +++ b/resources/lang/es/email.php @@ -1,6 +1,5 @@ 'Si estas teniendo problemas haciendo clic en el botón ":actiontext", '. 'copia y pega la URL inferior en tu navegador web:', diff --git a/resources/lang/es/errors.php b/resources/lang/es/errors.php index 5d85eabe8..819dbebcf 100644 --- a/resources/lang/es/errors.php +++ b/resources/lang/es/errors.php @@ -1,6 +1,5 @@ [ 'title' => 'Acceso no autorizado', diff --git a/resources/lang/es/expenses.php b/resources/lang/es/expenses.php index b0fc0272d..42c0dc842 100644 --- a/resources/lang/es/expenses.php +++ b/resources/lang/es/expenses.php @@ -1,6 +1,5 @@ [ 'flight' => 'Vuelo', diff --git a/resources/lang/es/flights.php b/resources/lang/es/flights.php index b4f090d73..7ec118ebb 100644 --- a/resources/lang/es/flights.php +++ b/resources/lang/es/flights.php @@ -1,6 +1,5 @@ 'Número de vuelo', 'flighttime' => 'Tiempo de vuelo', diff --git a/resources/lang/es/home.php b/resources/lang/es/home.php index 04099b461..538394718 100644 --- a/resources/lang/es/home.php +++ b/resources/lang/es/home.php @@ -1,6 +1,5 @@ [ 'title' => '¡Bienvenido!', diff --git a/resources/lang/es/pireps.php b/resources/lang/es/pireps.php index b76ae4083..56d70bdfe 100644 --- a/resources/lang/es/pireps.php +++ b/resources/lang/es/pireps.php @@ -1,6 +1,5 @@ 'Nuevo informe de vuelo', 'editflightreport' => 'Editar informe de vuelo', diff --git a/resources/lang/es/profile.php b/resources/lang/es/profile.php index f207b183c..030adb121 100644 --- a/resources/lang/es/profile.php +++ b/resources/lang/es/profile.php @@ -1,6 +1,5 @@ 'Este avatar será redimensionado a :width x :height pixeles', diff --git a/resources/lang/es/toc.php b/resources/lang/es/toc.php index 3f3a33d7e..e04d102da 100644 --- a/resources/lang/es/toc.php +++ b/resources/lang/es/toc.php @@ -1,6 +1,5 @@ 'Términos y condiciones', ]; diff --git a/resources/lang/es/user.php b/resources/lang/es/user.php index 16073990e..8cdc20434 100644 --- a/resources/lang/es/user.php +++ b/resources/lang/es/user.php @@ -1,6 +1,5 @@ 'Location', 'state' => [ diff --git a/resources/lang/es/widgets.php b/resources/lang/es/widgets.php index 623213842..12886c056 100644 --- a/resources/lang/es/widgets.php +++ b/resources/lang/es/widgets.php @@ -1,6 +1,5 @@ [ 'news' => 'Noticias', diff --git a/resources/lang/it/aircraft.php b/resources/lang/it/aircraft.php index 0678cd86d..cfd7c7822 100644 --- a/resources/lang/it/aircraft.php +++ b/resources/lang/it/aircraft.php @@ -1,6 +1,5 @@ [ 'active' => 'Attivo', diff --git a/resources/lang/it/airports.php b/resources/lang/it/airports.php index eb422d7ee..b62c041ef 100644 --- a/resources/lang/it/airports.php +++ b/resources/lang/it/airports.php @@ -1,6 +1,5 @@ 'Identificativo', 'home' => 'Aeroporto di Casa', diff --git a/resources/lang/it/common.php b/resources/lang/it/common.php index 0bf5e297c..ff9f39728 100644 --- a/resources/lang/it/common.php +++ b/resources/lang/it/common.php @@ -1,6 +1,5 @@ 'Dashboard', 'administration' => 'Amministrazione', diff --git a/resources/lang/it/dashboard.php b/resources/lang/it/dashboard.php index bb636ea67..5623bcbc5 100644 --- a/resources/lang/it/dashboard.php +++ b/resources/lang/it/dashboard.php @@ -1,6 +1,5 @@ 'Ore Totali', 'yourbalance' => 'Bilancio', diff --git a/resources/lang/it/downloads.php b/resources/lang/it/downloads.php index 43eb028df..91aab6b6e 100644 --- a/resources/lang/it/downloads.php +++ b/resources/lang/it/downloads.php @@ -1,6 +1,5 @@ 'Non ci sono downloads!', ]; diff --git a/resources/lang/it/email.php b/resources/lang/it/email.php index fa6f515f0..17e90a627 100644 --- a/resources/lang/it/email.php +++ b/resources/lang/it/email.php @@ -1,6 +1,5 @@ 'Se hai problemi a cliccare il bottone ":actiontext", '. 'copia e incolla l\'URL qui sotto nel tuo browser:', diff --git a/resources/lang/it/errors.php b/resources/lang/it/errors.php index 516609a55..c38ee7dbc 100644 --- a/resources/lang/it/errors.php +++ b/resources/lang/it/errors.php @@ -1,6 +1,5 @@ [ 'title' => 'Non Autorizzato', diff --git a/resources/lang/it/expenses.php b/resources/lang/it/expenses.php index 6f086cb99..55a3eba8e 100644 --- a/resources/lang/it/expenses.php +++ b/resources/lang/it/expenses.php @@ -1,6 +1,5 @@ [ 'flight' => 'Volo', diff --git a/resources/lang/it/flights.php b/resources/lang/it/flights.php index 7e72ea28a..2ee71cd2c 100644 --- a/resources/lang/it/flights.php +++ b/resources/lang/it/flights.php @@ -1,6 +1,5 @@ 'Numero di Volo', 'flighttime' => 'Tempo di Volo', diff --git a/resources/lang/it/home.php b/resources/lang/it/home.php index 443dc3436..524965345 100644 --- a/resources/lang/it/home.php +++ b/resources/lang/it/home.php @@ -1,6 +1,5 @@ [ 'title' => 'Benvenuti!', diff --git a/resources/lang/it/pireps.php b/resources/lang/it/pireps.php index 6f8509f72..3d18d9dac 100644 --- a/resources/lang/it/pireps.php +++ b/resources/lang/it/pireps.php @@ -1,6 +1,5 @@ 'Inserici Nuovo PIREP', 'pilotreport' => 'Rapporto Pilota|Rapporti Pilota', diff --git a/resources/lang/it/profile.php b/resources/lang/it/profile.php index fb76f2b9d..e50243a88 100644 --- a/resources/lang/it/profile.php +++ b/resources/lang/it/profile.php @@ -1,6 +1,5 @@ 'Questo avatar sarà ridimensionato a :width x :height pixels', 'newapikey' => 'Nuova Chiave API', diff --git a/resources/lang/it/toc.php b/resources/lang/it/toc.php index 0e8cc30d3..c8b1d28cf 100644 --- a/resources/lang/it/toc.php +++ b/resources/lang/it/toc.php @@ -1,6 +1,5 @@ 'Termini e Condizioni di Utilizzo', ]; diff --git a/resources/lang/it/user.php b/resources/lang/it/user.php index d7a1a74be..bea70b036 100644 --- a/resources/lang/it/user.php +++ b/resources/lang/it/user.php @@ -1,6 +1,5 @@ 'Posizione', 'state' => [ diff --git a/resources/lang/it/widgets.php b/resources/lang/it/widgets.php index 7d827b03d..c4bacc9e5 100644 --- a/resources/lang/it/widgets.php +++ b/resources/lang/it/widgets.php @@ -1,6 +1,5 @@ [ 'news' => 'Novità', diff --git a/tests/SubfleetTest.php b/tests/SubfleetTest.php index 200124174..9abcaf6e8 100644 --- a/tests/SubfleetTest.php +++ b/tests/SubfleetTest.php @@ -1,6 +1,5 @@