From 012a8efa30530d7c34eb11c7b92043eb1d134046 Mon Sep 17 00:00:00 2001 From: Rasmus Nielsen Date: Thu, 11 Mar 2021 14:19:53 +0100 Subject: [PATCH] Apply fixes from StyleCI (#48) --- src/Concerns/HasLocaleQueryPreferences.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Concerns/HasLocaleQueryPreferences.php b/src/Concerns/HasLocaleQueryPreferences.php index b042607..fce101e 100644 --- a/src/Concerns/HasLocaleQueryPreferences.php +++ b/src/Concerns/HasLocaleQueryPreferences.php @@ -21,7 +21,7 @@ public static function getCurrentLocale() * @param callable|null $callback * @return mixed|void */ - public static function setLocale($locale, ? callable $callback = null) + public static function setLocale($locale, ?callable $callback = null) { return static::handleSetLocale(__CLASS__.'@currentLocale', $locale, $callback); } @@ -31,12 +31,12 @@ public static function setLocale($locale, ? callable $callback = null) * @param callable|null $callback * @return mixed|void */ - public static function setGlobalLocale($locale, ? callable $callback = null) + public static function setGlobalLocale($locale, ?callable $callback = null) { return static::handleSetLocale(__TRAIT__.'@globalLocale', $locale, $callback); } - protected static function handleSetLocale($containerKey, $locale, ? callable $callback = null) + protected static function handleSetLocale($containerKey, $locale, ?callable $callback = null) { $previous = app()[$containerKey] ?? null; $reset = function () use ($containerKey, $previous) {