From ad20ab9ae138f693c75fb85d6b61a74c7bee7c74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Tue, 23 Jan 2024 09:37:51 +0100 Subject: [PATCH] phpcs fix --- app/Http/Controllers/ContactController.php | 6 +++--- database/factories/UserFactory.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/ContactController.php b/app/Http/Controllers/ContactController.php index b4e0626..0655c84 100644 --- a/app/Http/Controllers/ContactController.php +++ b/app/Http/Controllers/ContactController.php @@ -18,14 +18,14 @@ class ContactController extends Controller */ public function contact() { - $listCountries = Cache::remember('listCountries', 86400 , function () { + $listCountries = Cache::remember('listCountries', 86400, function () { return Country::toArray(); }); - $listDeps = Cache::remember('listDeps', 86400 , function () { + $listDeps = Cache::remember('listDeps', 86400, function () { return Department::toArray(); }); - + return view('front.contact', compact('listCountries', 'listDeps')); } diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index d24a902..a3e063f 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -27,7 +27,7 @@ class UserFactory extends Factory 'email' => $this->faker->unique()->safeEmail(), 'email_verified_at' => now(), 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', -// Password is : password . + // Password is : password . 'remember_token' => Str::random(10), ]; } @@ -39,7 +39,7 @@ class UserFactory extends Factory */ public function unverified() { - // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found return $this->state(function (array $attributes) { return [ 'email_verified_at' => null,