From 23c9efdb2239fc511592f7c837c8fa511df3d8a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Fri, 6 Oct 2023 16:31:06 +0200 Subject: [PATCH] phpcs --- app/Http/Controllers/Api/V2/CustomerController.php | 1 - app/Http/Controllers/Api/V4/CustomerController.php | 1 - app/Http/Controllers/Bo/CustomerController.php | 1 - app/Models/Service.php | 3 +-- 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/Http/Controllers/Api/V2/CustomerController.php b/app/Http/Controllers/Api/V2/CustomerController.php index 34975e3..c6ba58e 100644 --- a/app/Http/Controllers/Api/V2/CustomerController.php +++ b/app/Http/Controllers/Api/V2/CustomerController.php @@ -153,7 +153,6 @@ class CustomerController extends Controller // * Make sure we are accessing a customer that belongs to our service. $this->authorize('customerBelongsToService', $customer); - // TODO: Gestion avec mesBR. /** @var \App\Models\CustomerInfo */ $customerInfo = $customer->info($service->brand, Customer::FIRST_OR_FAIL); /** @var \App\Models\CustomerLogin */ diff --git a/app/Http/Controllers/Api/V4/CustomerController.php b/app/Http/Controllers/Api/V4/CustomerController.php index ba039c5..c58ec24 100644 --- a/app/Http/Controllers/Api/V4/CustomerController.php +++ b/app/Http/Controllers/Api/V4/CustomerController.php @@ -153,7 +153,6 @@ class CustomerController extends Controller // * Make sure we are accessing a customer that belongs to our service. $this->authorize('customerBelongsToService', $customer); - // TODO: Gestion avec mesBR. /** @var \App\Models\CustomerInfo */ $customerInfo = $customer->info($service->brand, Customer::FIRST_OR_FAIL); /** @var \App\Models\CustomerLogin */ diff --git a/app/Http/Controllers/Bo/CustomerController.php b/app/Http/Controllers/Bo/CustomerController.php index 95553ab..c1f3ec3 100644 --- a/app/Http/Controllers/Bo/CustomerController.php +++ b/app/Http/Controllers/Bo/CustomerController.php @@ -147,7 +147,6 @@ class CustomerController extends Controller public function delete(Customer $customer, Brand $brand): \Illuminate\Http\RedirectResponse { try { - // TODO: Gestion avec mesBR. /** @var \App\Models\CustomerInfo */ $customerInfo = $customer->info($brand, Customer::FIRST_OR_FAIL); /** @var \App\Models\CustomerLogin */ diff --git a/app/Models/Service.php b/app/Models/Service.php index 1ab92c4..4452119 100644 --- a/app/Models/Service.php +++ b/app/Models/Service.php @@ -186,9 +186,8 @@ class Service extends Model /** @var \App\Models\Service $service */ foreach ($services as $service) { $tokenEquals = false; - // * Keep compatibility with V1. + // * Keep compatibility with V2. if (!Hash::needsRehash($bearerToken)) { - // TODO: Remove this method when no more service will be in V1 (hashed instead of encrypted). $tokenEquals = Hash::check($bearerToken, $service->bearer_token); } else { $tokenEquals = $bearerToken === $service->bearer_token;