Completed
Pull Request — master (#2027)
by Basil
04:14 queued 02:02
created
core/web/UrlManager.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace luya\web;
4 4
 
5 5
 use Yii;
6
-
7 6
 use yii\web\BadRequestHttpException;
8 7
 use yii\web\NotFoundHttpException;
9 8
 
Please login to merge, or discard this patch.
core/console/commands/ThemeController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use luya\theme\ThemeConfig;
8 8
 use Yii;
9 9
 use yii\helpers\Console;
10
-use yii\helpers\Inflector;
11 10
 
12 11
 /**
13 12
  * Command to create a new LUYA theme.
Please login to merge, or discard this patch.
core/web/Bootstrap.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace luya\web;
4 4
 
5
-use Yii;
6
-use yii\base\InvalidConfigException;
7 5
 use yii\helpers\ArrayHelper;
8 6
 use luya\base\AdminModuleInterface;
9 7
 use luya\TagParser;
Please login to merge, or discard this patch.
core/web/Request.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,9 +73,9 @@
 block discarded – undo
73 73
                     $first = reset($parts);
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
-                    if (count($parts) > 0 && Yii::$app->hasModule($first) && StringHelper::endsWith($first, 'admin'))
77
-                        $this->_isAdmin = true;
78
-                    elseif (StringHelper::startsWith($first, 'admin')) {
76
+                    if (count($parts) > 0 && Yii::$app->hasModule($first) && StringHelper::endsWith($first, 'admin')) {
77
+                                            $this->_isAdmin = true;
78
+                    } elseif (StringHelper::startsWith($first, 'admin')) {
79 79
                         $this->_isAdmin = true;
80 80
                     } else {
81 81
                         $this->_isAdmin = false;
Please login to merge, or discard this patch.