Completed
Push — master ( 59ea7f...7fa9db )
by Basil
48s
created
core/web/Request.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,9 +74,9 @@
 block discarded – undo
74 74
 
75 75
                     // Check for a full route path where the module ends with admin like `newsadmin` and this module is loaded in the list of modules.
76 76
                     // @see https://github.com/luyadev/luya/pull/2027
77
-                    if (count($parts) > 0 && StringHelper::endsWith($first, 'admin') && Yii::$app->hasModule($first))
78
-                        $this->_isAdmin = true;
79
-                    elseif (strtolower(trim($first)) == 'admin') {
77
+                    if (count($parts) > 0 && StringHelper::endsWith($first, 'admin') && Yii::$app->hasModule($first)) {
78
+                                            $this->_isAdmin = true;
79
+                    } elseif (strtolower(trim($first)) == 'admin') {
80 80
                         $this->_isAdmin = true;
81 81
                     } else {
82 82
                         $this->_isAdmin = false;
Please login to merge, or discard this patch.