Completed
Pull Request — master (#1113)
by Martin
02:45
created
core/base/BaseBootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
             // see if the module has a registerComponents method
101 101
             foreach ($module->registerComponents() as $componentId => $definition) {
102 102
                 if (!$app->has($componentId)) {
103
-                    Yii::trace('Register component ' . $componentId, __METHOD__);
103
+                    Yii::trace('Register component '.$componentId, __METHOD__);
104 104
                     $app->set($componentId, $definition);
105 105
                 }
106 106
             }
Please login to merge, or discard this patch.
core/console/commands/ActiveWindowController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,11 +55,11 @@
 block discarded – undo
55 55
         
56 56
         $module = Yii::$app->getModule($moduleId);
57 57
         
58
-        $folder = $module->basePath . DIRECTORY_SEPARATOR . 'aws';
58
+        $folder = $module->basePath.DIRECTORY_SEPARATOR.'aws';
59 59
         
60
-        $file = $folder . DIRECTORY_SEPARATOR . $className . '.php';
60
+        $file = $folder.DIRECTORY_SEPARATOR.$className.'.php';
61 61
         
62
-        $content = $this->renderWindowClassView($className, $module->getNamespace() . '\\aws', $moduleId);
62
+        $content = $this->renderWindowClassView($className, $module->getNamespace().'\\aws', $moduleId);
63 63
         
64 64
         FileHelper::createDirectory($folder);
65 65
         
Please login to merge, or discard this patch.
core/console/commands/ModuleController.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -17,6 +17,7 @@
 block discarded – undo
17 17
     /**
18 18
      * Humanize the class name
19 19
      *
20
+     * @param string $name
20 21
      * @return string The humanized name.
21 22
      */
22 23
     public function humanizeName($name)
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -100,22 +100,22 @@  discard block
 block discarded – undo
100 100
             }
101 101
         }
102 102
         
103
-        $appModulesFolder = Yii::$app->basePath . DIRECTORY_SEPARATOR . 'modules';
104
-        $moduleFolder = $appModulesFolder . DIRECTORY_SEPARATOR . $moduleName;
103
+        $appModulesFolder = Yii::$app->basePath.DIRECTORY_SEPARATOR.'modules';
104
+        $moduleFolder = $appModulesFolder.DIRECTORY_SEPARATOR.$moduleName;
105 105
         
106 106
         if (file_exists($moduleFolder)) {
107
-            return $this->outputError("The folder " . $moduleFolder . " exists already.");
107
+            return $this->outputError("The folder ".$moduleFolder." exists already.");
108 108
         }
109 109
         
110 110
         $folders = [
111 111
             'basePath' => $moduleFolder,
112
-            'adminPath' => $moduleFolder . DIRECTORY_SEPARATOR . 'admin',
113
-            'adminAwsPath' => $moduleFolder . DIRECTORY_SEPARATOR . 'admin' . DIRECTORY_SEPARATOR . 'aws',
114
-            'frontendPath' => $moduleFolder . DIRECTORY_SEPARATOR . 'frontend',
115
-            'frontendBlocksPath' => $moduleFolder . DIRECTORY_SEPARATOR . 'frontend' . DIRECTORY_SEPARATOR . 'blocks',
116
-            'frontendControllersPath' => $moduleFolder . DIRECTORY_SEPARATOR . 'frontend' . DIRECTORY_SEPARATOR . 'controllers',
117
-            'frontendViewsPath' => $moduleFolder . DIRECTORY_SEPARATOR . 'frontend' . DIRECTORY_SEPARATOR . 'views',
118
-            'modelsPath' => $moduleFolder . DIRECTORY_SEPARATOR . 'models',
112
+            'adminPath' => $moduleFolder.DIRECTORY_SEPARATOR.'admin',
113
+            'adminAwsPath' => $moduleFolder.DIRECTORY_SEPARATOR.'admin'.DIRECTORY_SEPARATOR.'aws',
114
+            'frontendPath' => $moduleFolder.DIRECTORY_SEPARATOR.'frontend',
115
+            'frontendBlocksPath' => $moduleFolder.DIRECTORY_SEPARATOR.'frontend'.DIRECTORY_SEPARATOR.'blocks',
116
+            'frontendControllersPath' => $moduleFolder.DIRECTORY_SEPARATOR.'frontend'.DIRECTORY_SEPARATOR.'controllers',
117
+            'frontendViewsPath' => $moduleFolder.DIRECTORY_SEPARATOR.'frontend'.DIRECTORY_SEPARATOR.'views',
118
+            'modelsPath' => $moduleFolder.DIRECTORY_SEPARATOR.'models',
119 119
         ];
120 120
 
121 121
         $ns = 'app\\modules\\'.$moduleName;
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
         }
126 126
         
127 127
         $contents = [
128
-            $moduleFolder. DIRECTORY_SEPARATOR . 'README.md' => $this->renderReadme($folders, $moduleName, $ns),
129
-            $moduleFolder. DIRECTORY_SEPARATOR . 'admin/Module.php' => $this->renderAdmin($folders, $moduleName, $ns),
130
-            $moduleFolder. DIRECTORY_SEPARATOR . 'frontend/Module.php' => $this->renderFrontend($folders, $moduleName, $ns),
128
+            $moduleFolder.DIRECTORY_SEPARATOR.'README.md' => $this->renderReadme($folders, $moduleName, $ns),
129
+            $moduleFolder.DIRECTORY_SEPARATOR.'admin/Module.php' => $this->renderAdmin($folders, $moduleName, $ns),
130
+            $moduleFolder.DIRECTORY_SEPARATOR.'frontend/Module.php' => $this->renderFrontend($folders, $moduleName, $ns),
131 131
         ];
132 132
         
133 133
         foreach ($contents as $fileName => $content) {
Please login to merge, or discard this patch.
core/console/commands/ImportController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -164,18 +164,18 @@
 block discarded – undo
164 164
             }
165 165
             
166 166
             foreach ($this->getLog() as $section => $value) {
167
-                $this->outputInfo(PHP_EOL . $section . ":");
167
+                $this->outputInfo(PHP_EOL.$section.":");
168 168
                 foreach ($value as $k => $v) {
169 169
                     if (is_array($v)) {
170 170
                         foreach ($v as $kk => $kv) {
171 171
                             if (is_array($kv)) {
172
-                                $this->output(" - {$kk}: " . print_r($kv, true));
172
+                                $this->output(" - {$kk}: ".print_r($kv, true));
173 173
                             } else {
174 174
                                 $this->output(" - {$kk}: {$kv}");
175 175
                             }
176 176
                         }
177 177
                     } else {
178
-                        $this->output(" - " . $v);
178
+                        $this->output(" - ".$v);
179 179
                     }
180 180
                 }
181 181
             }
Please login to merge, or discard this patch.