From 44865470ee77466984e81bfc38dceeee0bdb828f Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Fri, 13 Oct 2023 10:09:16 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Http/Middleware/HandleInertiaRequests.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/Middleware/HandleInertiaRequests.php b/src/Http/Middleware/HandleInertiaRequests.php index 7d813d77b..65584be79 100644 --- a/src/Http/Middleware/HandleInertiaRequests.php +++ b/src/Http/Middleware/HandleInertiaRequests.php @@ -21,7 +21,7 @@ public function share(Request $request) ...parent::share($request), 'sharpVersion' => sharp_version(), 'locale' => app()->getLocale(), - 'translations' => Cache::rememberForever('sharp.translations.'.sharp_version(), function() { + 'translations' => Cache::rememberForever('sharp.translations.'.sharp_version(), function () { return collect([ 'sharp::action_bar', 'sharp::dashboard', @@ -37,7 +37,7 @@ public function share(Request $request) ]) ->map(function ($group) { return collect(__($group, [], app()->getFallbackLocale())) - ->mapWithKeys(fn($value, $key) => ["$group.$key" => __("$group.$key")]); + ->mapWithKeys(fn ($value, $key) => ["$group.$key" => __("$group.$key")]); }) ->collapse() ->toArray();