Passed
Pull Request — master (#332)
by Arman
02:44
created
src/Libraries/Lang/Factories/LangFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $isEnabled = filter_var(config()->get('lang.enabled'), FILTER_VALIDATE_BOOLEAN);
56 56
 
57 57
 
58
-        $langSegmentIndex = (int)config()->get('lang.url_segment');
58
+        $langSegmentIndex = (int) config()->get('lang.url_segment');
59 59
 
60 60
         if (!empty(route_prefix()) && $langSegmentIndex == 1) {
61 61
             $langSegmentIndex++;
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         $lang = Request::getSegment($langSegmentIndex);
65 65
 
66
-        if (empty($lang) || !in_array($lang, (array)config()->get('lang.supported'))) {
66
+        if (empty($lang) || !in_array($lang, (array) config()->get('lang.supported'))) {
67 67
             $lang = config()->get('lang.default');
68 68
         }
69 69
 
Please login to merge, or discard this patch.