@@ -22,8 +22,8 @@ discard block |
||
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 |
||
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 |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | public function verbosePrint($message, $section = null) |
36 | 36 | { |
37 | 37 | if ($this->verbose) { |
38 | - $this->output((!empty($section)) ? $section . ': ' . $message : $message); |
|
38 | + $this->output((!empty($section)) ? $section.': '.$message : $message); |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 | |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | $name = substr($name, 0, -(strlen($suffix))); |
118 | 118 | } |
119 | 119 | |
120 | - return $name . $suffix; |
|
120 | + return $name.$suffix; |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
@@ -73,6 +73,7 @@ |
||
73 | 73 | * @param string $key The identifier key |
74 | 74 | * @param mixed $value The value to store in the cache component. |
75 | 75 | * @param \yii\caching\Dependency $dependency Dependency of the cached item. If the dependency changes, the corresponding value in the cache will be invalidated when it is fetched via get(). This parameter is ignored if $serializer is false. |
76 | + * @param integer $cacheExpiration |
|
76 | 77 | * @return void |
77 | 78 | */ |
78 | 79 | public function setHasCache($key, $value, $dependency = null, $cacheExpiration = null) |