Completed
Pull Request — master (#8)
by
unknown
03:18
created
controllers/WebController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 use yii\web\Controller;
17 17
 use yii\web\NotFoundHttpException;
18 18
 use yii\web\Response;
19
-use assayerpro\sitemap\RobotsTxt;
20 19
 
21 20
 /**
22 21
  * DefaultController for sitemap module
Please login to merge, or discard this patch.
Generator.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 
17 17
 use Yii;
18 18
 use XMLWriter;
19
-use yii\base\InvalidConfigException;
20 19
 use yii\caching\Cache;
21 20
 use yii\helpers\Url;
22 21
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
             return $item;
174 174
         }, $urls);
175 175
 
176
-        usort($urls, function ($urlA, $urlB) {
176
+        usort($urls, function($urlA, $urlB) {
177 177
             if (!isset($urlA['priority'])) {
178 178
                 return 1;
179 179
             }
Please login to merge, or discard this patch.
controllers/ConsoleController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function actionIndex()
48 48
     {
49
-        $route = '/' . $this->module->id . '/web/index';
49
+        $route = '/'.$this->module->id.'/web/index';
50 50
         $rootDir = trim($this->rootDir, '/');
51
-        $file = Yii::getAlias($rootDir) . Url::to([$route], false);
51
+        $file = Yii::getAlias($rootDir).Url::to([$route], false);
52 52
 
53 53
         $this->stdout("Generate sitemap file.\n", Console::FG_GREEN);
54 54
         $this->stdout("Rendering sitemap...\n", Console::FG_GREEN);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $sitemap_count = count($sitemap);
60 60
 
61 61
         for ($i = 0; $i < $sitemap_count - 1; $i++) {
62
-            $file = Yii::getAlias($rootDir) . Url::to([$route, 'id' => $i], false);
62
+            $file = Yii::getAlias($rootDir).Url::to([$route, 'id' => $i], false);
63 63
             $this->stdout("Writing sitemap to $file\n", Console::FG_GREEN);
64 64
             file_put_contents($file, $sitemap[$i + 1]['xml']);
65 65
         }
Please login to merge, or discard this patch.