diff --git a/src/Controllers/Language.php b/src/Controllers/Language.php index 703fb97..641c18d 100644 --- a/src/Controllers/Language.php +++ b/src/Controllers/Language.php @@ -61,7 +61,8 @@ public function back($locale, Request $request) if (config('language.url')) { $previous_url = substr(str_replace(env('APP_URL'), '', $session->previousUrl()), 7); - if (strlen($previous_url) == 3){ + + if (strlen($previous_url) == 3) { $previous_url = substr($previous_url, 3); } else { $previous_url = substr($previous_url, strrpos($previous_url, '/') + 1);