Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
bezhanSalleh authored and github-actions[bot] committed Jan 9, 2024
1 parent 2aa1b35 commit 993e4d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Events/LocaleChanged.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class LocaleChanged
{
public function __construct(
public string $locale
){
) {
}
}
2 changes: 1 addition & 1 deletion src/Http/Middleware/SwitchLanguageLocale.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function handle(Request $request, Closure $next): \Illuminate\Http\Respon
private function getBrowserLocale(Request $request): ?string
{
$appLocales = LanguageSwitch::make()->getLocales();

$userLocales = preg_split('/[,;]/', $request->server('HTTP_ACCEPT_LANGUAGE'));

foreach ($userLocales as $locale) {
Expand Down

0 comments on commit 993e4d3

Please sign in to comment.