Completed
Push — master ( 1075fd...61b385 )
by Avtandil
20:59 queued 06:11
created
src/MultiLang/Middleware/MultiLang.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function handle(Request $request, Closure $next)
54 54
     {
55
-        if (! $this->app->bound(MultiLangLib::class)) {
55
+        if (!$this->app->bound(MultiLangLib::class)) {
56 56
             return $next($request);
57 57
         }
58 58
         $multilang = $this->app->make(MultiLangLib::class);
59 59
 
60 60
         $url = $multilang->getRedirectUrl($request);
61 61
 
62
-        if (! empty($url)) {
62
+        if (!empty($url)) {
63 63
             if ($request->expectsJson()) {
64 64
                 return response('Not found', 404);
65 65
             } else {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         if ($multilang->getConfig()->get('set_system_locale')) {
79 79
             $locales = $multilang->getLocales();
80
-            if (! empty($locales[$locale]['full_locale'])) {
80
+            if (!empty($locales[$locale]['full_locale'])) {
81 81
                 $lc = $multilang->getConfig()->get('system_locale_lc', LC_ALL);
82 82
 
83 83
                 setlocale($lc, $locales[$locale]['full_locale']);
Please login to merge, or discard this patch.