From d94e52ecbd25598b1b4318a2894c5c4070a7fc6c Mon Sep 17 00:00:00 2001 From: Abdelrahman Omran Date: Thu, 31 Aug 2023 01:36:28 +0400 Subject: [PATCH] Apply fixes from StyleCI (#80) Co-authored-by: StyleCI Bot --- src/Traits/HashidsTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/HashidsTrait.php b/src/Traits/HashidsTrait.php index 470337b..6f79936 100644 --- a/src/Traits/HashidsTrait.php +++ b/src/Traits/HashidsTrait.php @@ -58,7 +58,7 @@ public function unhashId($value) */ protected function shouldBeHashed(): bool { - $accessareas = app('accessareas')->active()->obscured()->keys()->when($this->obscure, fn($collection) => $collection->merge(collect($this->obscure)->intersect(app('accessareas')->active()->keys()))->unique())->toArray(); + $accessareas = app('accessareas')->active()->obscured()->keys()->when($this->obscure, fn ($collection) => $collection->merge(collect($this->obscure)->intersect(app('accessareas')->active()->keys()))->unique())->toArray(); return in_array(request()->accessarea(), $accessareas) && in_array($this->getRouteKeyName(), config('cortex.foundation.obscure.hashed_keys')); }