Completed
Push — master ( c7e393...87fceb )
by Maxime
08:09
created
src/Distilleries/Expendable/Http/Middleware/SetterLanguage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
     public function handle($request, Closure $next)
19 19
     {
20 20
 
21
-        if($request->session()->has('language')){
22
-            $local = $request->session()->get('language',config('app.locale'));
21
+        if ($request->session()->has('language')) {
22
+            $local = $request->session()->get('language', config('app.locale'));
23 23
             app()->setLocale($local);
24 24
         }
25 25
 
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Http/Controllers/Admin/LanguageController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
     public function getChangeLang($locale = null)
20 20
     {
21
-        session()->set('language',$locale);
21
+        session()->set('language', $locale);
22 22
         app()->setLocale($locale);
23 23
         return redirect()->back();
24 24
     }
Please login to merge, or discard this patch.
src/Distilleries/routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
 });
31 31
 
32
-$router->group(array('middleware' => ['auth','language']), function() use($router)
32
+$router->group(array('middleware' => ['auth', 'language']), function() use($router)
33 33
 {
34 34
     $router->group(array('middleware' => 'permission', 'prefix' => config('expendable.admin_base_uri')), function() use($router)
35 35
     {
Please login to merge, or discard this patch.