Completed
Pull Request — master (#966)
by Martin
05:18
created
core/helpers/FileHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     {
42 42
         $info = pathinfo($file);
43 43
         if (!isset($info['extension']) || empty($info['extension'])) {
44
-            $file = rtrim($file, '.') . '.' . $extension;
44
+            $file = rtrim($file, '.').'.'.$extension;
45 45
         }
46 46
 
47 47
         return $file;
Please login to merge, or discard this patch.
core/console/commands/CrudController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,8 +104,8 @@
 block discarded – undo
104 104
                 case 'model':
105 105
 
106 106
                     if (!$extended) {
107
-                        $modelName = $modelName . 'NgRest';
108
-                        $item['file'] = $modelName . '.php';
107
+                        $modelName = $modelName.'NgRest';
108
+                        $item['file'] = $modelName.'.php';
109 109
                         $item['class'] = $modelName;
110 110
                     }
111 111
                     
Please login to merge, or discard this patch.
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/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
             if (isset($partial[0]) && (count($partial) > 1) && ($module = Yii::$app->getModule($partial[0]))) {
76 76
                 try {
77 77
                     // change the controller namespace of this module to make usage of `commands`.
78
-                    $module->controllerNamespace = $module->namespace . '\commands';
78
+                    $module->controllerNamespace = $module->namespace.'\commands';
79 79
                     unset($partial[0]);
80 80
                     // action response
81 81
                     return $module->runAction(implode("/", $partial), $params);
Please login to merge, or discard this patch.
core/helpers/StringHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@
 block discarded – undo
20 20
     {
21 21
         if (is_numeric($string)) {
22 22
             if (is_float($string)) {
23
-                return (float)$string;
23
+                return (float) $string;
24 24
             } else {
25
-                return (int)$string;
25
+                return (int) $string;
26 26
             }
27 27
         } elseif (is_array($string)) {
28 28
             return ArrayHelper::typeCast($string);
Please login to merge, or discard this patch.
core/web/Element.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -217,12 +217,12 @@
 block discarded – undo
217 217
     {
218 218
         if ($this->renderEngine == 'php') {
219 219
             $view = new View();
220
-            return $view->renderPhpFile(rtrim($this->getFolder(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . FileHelper::ensureExtension($file, 'php'), $args);
220
+            return $view->renderPhpFile(rtrim($this->getFolder(), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.FileHelper::ensureExtension($file, 'php'), $args);
221 221
         } elseif ($this->renderEngine == 'twig') {
222 222
             $twig = Yii::$app->twig->env(new Twig_Loader_Filesystem($this->getFolder()));
223 223
             return $twig->render(FileHelper::ensureExtension($file, 'twig'), $args);
224 224
         }
225 225
         
226
-        throw new Exception('Not supported render engine: ' . $this->renderEngine);
226
+        throw new Exception('Not supported render engine: '.$this->renderEngine);
227 227
     }
228 228
 }
Please login to merge, or discard this patch.
core/console/commands/views/crud/create_model.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
 /**
23 23
  * NgRest Model created at <?= date("d.m.Y H:i"); ?> on LUYA Version <?= $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 28
 <?php if (!$extended): ?>abstract <?php endif; ?>class <?= $className; ?> extends \admin\ngrest\base\Model
29 29
 {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     {
98 98
         return [
99 99
         <?php foreach ($fieldConfigs as $name => $type): ?>
100
-    '<?=$name; ?>' => '<?= $type;?>',
100
+    '<?=$name; ?>' => '<?= $type; ?>',
101 101
         <?php endforeach; ?>];
102 102
     }
103 103
     
Please login to merge, or discard this patch.