@@ -53,14 +53,14 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | public function handle(Request $request, Closure $next) |
| 55 | 55 | { |
| 56 | - if (! $this->app->bound(MultiLangLib::class)) { |
|
| 56 | + if (!$this->app->bound(MultiLangLib::class)) { |
|
| 57 | 57 | return $next($request); |
| 58 | 58 | } |
| 59 | 59 | $multilang = $this->app->make(MultiLangLib::class); |
| 60 | 60 | |
| 61 | 61 | $url = $multilang->getRedirectUrl($request); |
| 62 | 62 | |
| 63 | - if (! empty($url)) { |
|
| 63 | + if (!empty($url)) { |
|
| 64 | 64 | if ($request->expectsJson()) { |
| 65 | 65 | return response('Not found', 404); |
| 66 | 66 | } else { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | if ($multilang->getConfig()->get('set_system_locale')) { |
| 80 | 80 | $locales = $multilang->getLocales(); |
| 81 | - if (! empty($locales[$locale]['full_locale'])) { |
|
| 81 | + if (!empty($locales[$locale]['full_locale'])) { |
|
| 82 | 82 | $lc = $multilang->getConfig()->get('system_locale_lc', E_ALL); |
| 83 | 83 | |
| 84 | 84 | setlocale($lc, $locales[$locale]['full_locale']); |