Passed
Push — develop ( 36a25b...180af8 )
by Nikolay
05:13
created
src/AdminCabinet/Providers/LanguageSelectorProvider.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@
 block discarded – undo
24 24
     {
25 25
         $di->setShared(
26 26
             'language',
27
-            function () {
27
+            function() {
28 28
                 $roSession = $this->getShared('sessionRO');
29 29
                 if ($roSession !== null && array_key_exists(
30 30
                         'WebAdminLanguage',
31 31
                         $roSession
32
-                    ) && ! empty($roSession['WebAdminLanguage'])) {
32
+                    ) && !empty($roSession['WebAdminLanguage'])) {
33 33
                     $language = $roSession['WebAdminLanguage'];
34 34
                 } elseif (array_key_exists('HTTP_ACCEPT_LANGUAGE', $_SERVER)) {
35 35
                     $ls       = new LanguageSelector();
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,8 @@
 block discarded – undo
24 24
     {
25 25
         $di->setShared(
26 26
             'language',
27
-            function () {
27
+            function ()
28
+            {
28 29
                 $roSession = $this->getShared('sessionRO');
29 30
                 if ($roSession !== null && array_key_exists(
30 31
                         'WebAdminLanguage',
Please login to merge, or discard this patch.