Completed
Pull Request — master (#823)
by Martin
02:58
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/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.
core/console/commands/CommandController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         }
43 43
 
44 44
         // change the namespace where the controller should be lookuped up in
45
-        $module->controllerNamespace = $module->namespace . '\commands';
45
+        $module->controllerNamespace = $module->namespace.'\commands';
46 46
         
47 47
         // action response
48 48
         $response = $module->runAction($route, ['verbose' => $this->verbose]);
Please login to merge, or discard this patch.
core/console/commands/views/crud/create_model.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@  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 foreach($properties as $name => $type): ?> * @property <?= $type; ?> $<?= $name . PHP_EOL; ?>
26
-<?php endforeach;?>
25
+<?php foreach ($properties as $name => $type): ?> * @property <?= $type; ?> $<?= $name.PHP_EOL; ?>
26
+<?php endforeach; ?>
27 27
  */
28
-<?php if (!$extended): ?>abstract <?endif;?>class <?php echo $className; ?> extends \admin\ngrest\base\Model
28
+<?php if (!$extended): ?>abstract <?endif; ?>class <?php echo $className; ?> extends \admin\ngrest\base\Model
29 29
 {
30 30
     <?php if ($extended): ?>
31 31
     /**
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         return [
45 45
         <?php foreach ($allFieldNames as $name): ?>
46 46
     '<?= $name; ?>' => Yii::t('app', '<?= \yii\helpers\Inflector::humanize($name); ?>'),
47
-        <?php endforeach;?>];
47
+        <?php endforeach; ?>];
48 48
     }
49 49
     
50 50
     /**
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
     {
98 98
         return [
99 99
         <?php foreach ($fieldConfigs as $name => $type): ?>
100
-    '<?=$name; ?>' => '<?= $type;?>',
101
-        <?endforeach;?>];
100
+    '<?=$name; ?>' => '<?= $type; ?>',
101
+        <?endforeach; ?>];
102 102
     }
103 103
     
104 104
     /**
Please login to merge, or discard this patch.
core/traits/ErrorHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,9 +68,9 @@
 block discarded – undo
68 68
             $_file = $exception->getFile();
69 69
             $_line = $exception->getLine();
70 70
         } elseif (is_string($exception)) {
71
-            $_message = 'exception string: ' . $exception;
71
+            $_message = 'exception string: '.$exception;
72 72
         } elseif (is_array($exception)) {
73
-            $_message = 'exception array dump: ' . print_r($exception, true);
73
+            $_message = 'exception array dump: '.print_r($exception, true);
74 74
         }
75 75
 
76 76
         return [
Please login to merge, or discard this patch.