Completed
Push — master ( 02186d...a799aa )
by Marc
03:02
created
core/console/commands/BlockController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
         return $this->view->render('@luya/console/commands/views/block/create_block_view.php', [
285 285
             'blockClassName' => $blockClassName,
286 286
             'phpdoc' => $this->viewFileDoc,
287
-        	'luyaText' => $this->getGeneratorText('block/create'),
287
+            'luyaText' => $this->getGeneratorText('block/create'),
288 288
         ]);
289 289
     }
290 290
     
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
             'config' => $this->config,
381 381
             'phpdoc' => $this->phpdoc,
382 382
             'extras' => $this->extras,
383
-        	'luyaText' => $this->getGeneratorText('block/create'),
383
+            'luyaText' => $this->getGeneratorText('block/create'),
384 384
         ]);
385 385
 
386 386
         if ($this->dryRun) {
Please login to merge, or discard this patch.
core/console/commands/ActiveWindowController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@
 block discarded – undo
30 30
      */
31 31
     public function renderWindowClassView($className, $namespace, $moduleId)
32 32
     {
33
-    	$alias = Inflector::humanize(Inflector::camel2words($className));
34
-    	return $this->view->render('@luya/console/commands/views/aw/create.php', [
33
+        $alias = Inflector::humanize(Inflector::camel2words($className));
34
+        return $this->view->render('@luya/console/commands/views/aw/create.php', [
35 35
             'className' => $className,
36 36
             'namespace' => $namespace,
37 37
             'luyaText' => $this->getGeneratorText('aw/create'),
Please login to merge, or discard this patch.
core/console/commands/CrudController.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -170,13 +170,13 @@  discard block
 block discarded – undo
170 170
      */
171 171
     public function generateApiContent($fileNamespace, $className, $modelClass)
172 172
     {
173
-    	$alias = Inflector::humanize(Inflector::camel2words($className));
173
+        $alias = Inflector::humanize(Inflector::camel2words($className));
174 174
         return $this->view->render('@luya/console/commands/views/crud/create_api.php', [
175 175
             'namespace' => $fileNamespace,
176 176
             'className' => $className,
177 177
             'modelClass' =>  $modelClass,
178 178
             'luyaVersion' => $this->getGeneratorText('crud/create'),
179
-        	'alias' => $alias,
179
+            'alias' => $alias,
180 180
         ]);
181 181
     }
182 182
     
@@ -189,13 +189,13 @@  discard block
 block discarded – undo
189 189
      */
190 190
     public function generateControllerContent($fileNamespace, $className, $modelClass)
191 191
     {
192
-    	$alias = Inflector::humanize(Inflector::camel2words($className));
192
+        $alias = Inflector::humanize(Inflector::camel2words($className));
193 193
         return $this->view->render('@luya/console/commands/views/crud/create_controller.php', [
194 194
             'namespace' => $fileNamespace,
195 195
             'className' => $className,
196 196
             'modelClass' =>  $modelClass,
197 197
             'luyaVersion' => $this->getGeneratorText('crud/create'),
198
-        	'alias' => $alias,
198
+            'alias' => $alias,
199 199
         ]);
200 200
     }
201 201
     
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      */
212 212
     public function generateModelContent($fileNamepsace, $className, $apiEndpoint, TableSchema $schema, $i18nFields)
213 213
     {
214
-    	$alias = Inflector::humanize(Inflector::camel2words($className));
214
+        $alias = Inflector::humanize(Inflector::camel2words($className));
215 215
         $dbTableName = $schema->fullName;
216 216
         
217 217
         $fields = [];
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
             'properties' => $properties,
260 260
             'ngrestFieldConfig' => $ngrestFieldConfig,
261 261
             'i18nFields' => $i18nFields,
262
-        	'alias' => $alias,
262
+            'alias' => $alias,
263 263
         ]);
264 264
     }
265 265
 
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
                 $this->apiEndpoint,
367 367
                 $this->getDbTableShema(),
368 368
                 $this->enableI18n
369
-             ),
369
+                ),
370 370
         ];
371 371
         
372 372
         foreach ($files as $file) {
Please login to merge, or discard this patch.
core/console/Command.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,6 +141,6 @@
 block discarded – undo
141 141
      */
142 142
     public function getGeneratorText($command)
143 143
     {
144
-    	return 'File has been created with `'.$command.'` command on LUYA version '.$this->getLuyaVersion().'.';	
144
+        return 'File has been created with `'.$command.'` command on LUYA version '.$this->getLuyaVersion().'.';	
145 145
     }
146 146
 }
Please login to merge, or discard this patch.
core/console/commands/ModuleController.php 1 patch
Indentation   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -14,70 +14,70 @@
 block discarded – undo
14 14
  */
15 15
 class ModuleController extends \luya\console\Command
16 16
 {
17
-	/**
18
-	 * Humanize the class name
19
-	 * 
20
-	 * @return string The humanized name.
21
-	 */
22
-	public function humanizeName($name)
23
-	{
24
-		return $name = Inflector::humanize(Inflector::camel2words($name));
25
-	}
17
+    /**
18
+     * Humanize the class name
19
+     * 
20
+     * @return string The humanized name.
21
+     */
22
+    public function humanizeName($name)
23
+    {
24
+        return $name = Inflector::humanize(Inflector::camel2words($name));
25
+    }
26 26
 	
27
-	/**
28
-	 * Render the readme template.
29
-	 * 
30
-	 * @param string $folders
31
-	 * @param string $name
32
-	 * @param string $ns
33
-	 * @return string
34
-	 */
35
-	public function renderReadme($folders, $name, $ns)
36
-	{
37
-		return $this->view->render('@luya/console/commands/views/module/readme.php', [
38
-			'folders' => $folders,
39
-			'name' => $name,
40
-			'humanName' => $this->humanizeName($name),
41
-			'ns' => $ns,
42
-			'luyaText' => $this->getGeneratorText('module/create'),
43
-		]);
44
-	}
27
+    /**
28
+     * Render the readme template.
29
+     * 
30
+     * @param string $folders
31
+     * @param string $name
32
+     * @param string $ns
33
+     * @return string
34
+     */
35
+    public function renderReadme($folders, $name, $ns)
36
+    {
37
+        return $this->view->render('@luya/console/commands/views/module/readme.php', [
38
+            'folders' => $folders,
39
+            'name' => $name,
40
+            'humanName' => $this->humanizeName($name),
41
+            'ns' => $ns,
42
+            'luyaText' => $this->getGeneratorText('module/create'),
43
+        ]);
44
+    }
45 45
 	
46
-	/**
47
-	 * Render the admin template.
48
-	 * 
49
-	 * @param string $folders
50
-	 * @param string $name
51
-	 * @param string $ns
52
-	 * @return string
53
-	 */
54
-	public function renderAdmin($folders, $name, $ns)
55
-	{
56
-		return $this->view->render('@luya/console/commands/views/module/adminmodule.php', [
57
-			'folders' => $folders,
58
-			'name' => $this->humanizeName($name),
59
-			'ns' => $ns,
60
-			'luyaText' => $this->getGeneratorText('module/create'),
61
-		]);
62
-	}
46
+    /**
47
+     * Render the admin template.
48
+     * 
49
+     * @param string $folders
50
+     * @param string $name
51
+     * @param string $ns
52
+     * @return string
53
+     */
54
+    public function renderAdmin($folders, $name, $ns)
55
+    {
56
+        return $this->view->render('@luya/console/commands/views/module/adminmodule.php', [
57
+            'folders' => $folders,
58
+            'name' => $this->humanizeName($name),
59
+            'ns' => $ns,
60
+            'luyaText' => $this->getGeneratorText('module/create'),
61
+        ]);
62
+    }
63 63
 	
64
-	/**
65
-	 * Render the frontend template.
66
-	 * 
67
-	 * @param string $folders
68
-	 * @param string $name
69
-	 * @param string $ns
70
-	 * @return string
71
-	 */
72
-	public function renderFrontend($folders, $name, $ns)
73
-	{
74
-		return $this->view->render('@luya/console/commands/views/module/frontendmodule.php', [
75
-			'folders' => $folders,
76
-			'name' => $this->humanizeName($name),
77
-			'ns' => $ns,
78
-			'luyaText' => $this->getGeneratorText('module/create'),
79
-		]);
80
-	}
64
+    /**
65
+     * Render the frontend template.
66
+     * 
67
+     * @param string $folders
68
+     * @param string $name
69
+     * @param string $ns
70
+     * @return string
71
+     */
72
+    public function renderFrontend($folders, $name, $ns)
73
+    {
74
+        return $this->view->render('@luya/console/commands/views/module/frontendmodule.php', [
75
+            'folders' => $folders,
76
+            'name' => $this->humanizeName($name),
77
+            'ns' => $ns,
78
+            'luyaText' => $this->getGeneratorText('module/create'),
79
+        ]);
80
+    }
81 81
 	
82 82
     /**
83 83
      * Create a new frontend/admin module.
Please login to merge, or discard this patch.