Completed
Push — master ( 17033c...4dd2d7 )
by Marc
02:59
created
core/console/commands/views/crud/create_controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,5 +19,5 @@
 block discarded – undo
19 19
     /**
20 20
      * @var string $modelClass The path to the model which is the provider for the rules and fields.
21 21
      */
22
-    public $modelClass = '<?= $modelClass;?>';
22
+    public $modelClass = '<?= $modelClass; ?>';
23 23
 }
Please login to merge, or discard this patch.
core/console/commands/views/crud/create_api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,5 +19,5 @@
 block discarded – undo
19 19
     /**
20 20
      * @var string $modelClass The path to the model which is the provider for the rules and fields.
21 21
      */
22
-    public $modelClass = '<?= $modelClass;?>';
22
+    public $modelClass = '<?= $modelClass; ?>';
23 23
 }
Please login to merge, or discard this patch.
core/console/commands/views/crud/create_model.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @var $className
4
- * @var $modelClass
5
- * @var $namespace
6
- * @var $luyaVersion
7
- * @var $sqlTable
8
- * @var $fieldNames
9
- * @var $allFieldNames
10
- * @var $textFields
11
- * @var $textareaFields
12
- * @var $i18n
13
- */
3
+     * @var $className
4
+     * @var $modelClass
5
+     * @var $namespace
6
+     * @var $luyaVersion
7
+     * @var $sqlTable
8
+     * @var $fieldNames
9
+     * @var $allFieldNames
10
+     * @var $textFields
11
+     * @var $textareaFields
12
+     * @var $i18n
13
+     */
14 14
 
15 15
 echo "<?php\n";
16 16
 ?>
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 /**
23 23
  * NgRest Model created at <?php echo date("d.m.Y H:i"); ?> on LUYA Version <?php echo $luyaVersion; ?>.
24 24
  */
25
-<?php if (!$extended): ?>abstract <?endif;?>class <?php echo $className; ?> extends \admin\ngrest\base\Model
25
+<?php if (!$extended): ?>abstract <?endif; ?>class <?php echo $className; ?> extends \admin\ngrest\base\Model
26 26
 {
27 27
     <?php if ($extended): ?>
28 28
     /**
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         return [
42 42
         <?php foreach ($allFieldNames as $name): ?>
43 43
     '<?= $name; ?>' => Yii::t('app', '<?= \yii\helpers\Inflector::humanize($name); ?>'),
44
-        <?php endforeach;?>];
44
+        <?php endforeach; ?>];
45 45
     }
46 46
     
47 47
     /**
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
     {
95 95
         return [
96 96
         <?php foreach ($fieldConfigs as $name => $type): ?>
97
-    '<?=$name; ?>' => '<?= $type;?>',
98
-        <?endforeach;?>];
97
+    '<?=$name; ?>' => '<?= $type; ?>',
98
+        <?endforeach; ?>];
99 99
     }
100 100
     
101 101
     /**
Please login to merge, or discard this patch.
core/helpers/ArrayHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@
 block discarded – undo
50 50
         foreach ($array as $k => $v) {
51 51
             if (is_numeric($v)) {
52 52
                 if (is_float($v)) {
53
-                    $return[$k] = (float)$v;
53
+                    $return[$k] = (float) $v;
54 54
                 } else {
55
-                    $return[$k] = (int)$v;
55
+                    $return[$k] = (int) $v;
56 56
                 }
57 57
             } elseif (is_array($v)) {
58 58
                 $return[$k] = self::typeCast($v);
Please login to merge, or discard this patch.