Completed
Branch master (bf31fb)
by Александр
77:38 queued 37:39
created
src/relatedProperties/models/RelatedElementPropertyModel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             [
69 69
                 ['value_enum', 'value_int2'],
70 70
                 'filter',
71
-                'filter' => function ($value) {
71
+                'filter' => function($value) {
72 72
                     $value = (int)$value;
73 73
                     $filter_options = [
74 74
                         'options' => [
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             [
87 87
                 ['value_num', 'value_num2'],
88 88
                 'filter',
89
-                'filter' => function ($value) {
89
+                'filter' => function($value) {
90 90
                     $value = (float)$value;
91 91
                     $min_range = -1.0E+14;
92 92
                     $max_range = 1.0E+14;
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             [
104 104
                 'value_bool',
105 105
                 'filter',
106
-                'filter' => function ($value) {
106
+                'filter' => function($value) {
107 107
                     $value = (bool)$value;
108 108
                     return $value;
109 109
                 }
Please login to merge, or discard this patch.
src/views/user/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
                     [
26 26
                         'class' => \yii\grid\DataColumn::className(),
27
-                        'value' => function ($model, $key, $index, $widget) {
27
+                        'value' => function($model, $key, $index, $widget) {
28 28
                             //return "<img src='" . $model->() . "' style='width: 100px;' />";
29 29
                         },
30 30
                         'attribute' => 'image',
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
                     [
35 35
                         'class' => \yii\grid\DataColumn::className(),
36
-                        'value' => function ($model, $key, $index, $widget) {
36
+                        'value' => function($model, $key, $index, $widget) {
37 37
                             return Html::a($model->getDisplayName(), $model->getPageUrl());
38 38
                         },
39 39
                         'attribute' => 'name',
Please login to merge, or discard this patch.
src/views/admin-storage-files/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
         [
56 56
             'class' => \yii\grid\DataColumn::className(),
57
-            'value' => function (\skeeks\cms\models\StorageFile $model) {
57
+            'value' => function(\skeeks\cms\models\StorageFile $model) {
58 58
                 if ($model->isImage()) {
59 59
 
60 60
                     $smallImage = \Yii::$app->imaging->getImagingUrl($model->src,
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         [
88 88
             'class' => \yii\grid\DataColumn::className(),
89
-            'value' => function (\skeeks\cms\models\StorageFile $model) {
89
+            'value' => function(\skeeks\cms\models\StorageFile $model) {
90 90
                 $model->cluster_id;
91 91
                 $cluster = \Yii::$app->storage->getCluster($model->cluster_id);
92 92
                 return $cluster->name;
Please login to merge, or discard this patch.
src/views/admin-cms-content-type/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             'code',
34 34
 
35 35
             [
36
-                'value' => function (\skeeks\cms\models\CmsContentType $model) {
36
+                'value' => function(\skeeks\cms\models\CmsContentType $model) {
37 37
                     $contents = \yii\helpers\ArrayHelper::map($model->cmsContents, 'id', 'name');
38 38
                     return implode(', ', $contents);
39 39
                 },
Please login to merge, or discard this patch.
src/views/admin-clear/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
                 'label',
29 29
                 [
30 30
                     'class' => \yii\grid\DataColumn::className(),
31
-                    'value' => function ($data) {
31
+                    'value' => function($data) {
32 32
                         /**
33 33
                          * @var $dir \skeeks\sx\Dir
34 34
                          */
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
                 [
41 41
                     'class' => \yii\grid\DataColumn::className(),
42
-                    'value' => function ($data) {
42
+                    'value' => function($data) {
43 43
                         /**
44 44
                          * @var $dir \skeeks\sx\Dir
45 45
                          */
Please login to merge, or discard this patch.
src/views/admin-component-settings/sites.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
         [
51 51
             'class' => \yii\grid\DataColumn::className(),
52
-            'value' => function (\skeeks\cms\models\CmsSite $model, $key, $index) {
52
+            'value' => function(\skeeks\cms\models\CmsSite $model, $key, $index) {
53 53
                 return \yii\helpers\Html::a('<i class="glyphicon glyphicon-cog"></i>',
54 54
                     \skeeks\cms\helpers\UrlHelper::constructCurrent()->setRoute('cms/admin-component-settings/site')->set('site_id',
55 55
                         $model->id)->toString(),
Please login to merge, or discard this patch.
src/views/admin-component-settings/users.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     'columns' => [
47 47
         [
48 48
             'class' => \yii\grid\DataColumn::className(),
49
-            'value' => function (\skeeks\cms\models\User $model, $key, $index) {
49
+            'value' => function(\skeeks\cms\models\User $model, $key, $index) {
50 50
                 return \yii\helpers\Html::a('<i class="glyphicon glyphicon-cog"></i>',
51 51
                     \skeeks\cms\helpers\UrlHelper::constructCurrent()->setRoute('cms/admin-component-settings/user')->set('user_id',
52 52
                         $model->id)->toString(),
Please login to merge, or discard this patch.
src/views/admin-tools/_columns-select-cms-element.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
     [
11 11
         'class' => \yii\grid\DataColumn::className(),
12
-        'value' => function ($model) {
12
+        'value' => function($model) {
13 13
             return \yii\helpers\Html::a('<i class="glyphicon glyphicon-circle-arrow-left"></i> ' . \Yii::t('skeeks/cms',
14 14
                     'Choose'), $model->id, [
15 15
                 'class' => 'btn btn-primary sx-row-action',
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
     [
27 27
         'class' => \yii\grid\DataColumn::className(),
28
-        'value' => function (\skeeks\cms\models\CmsContentElement $model) {
28
+        'value' => function(\skeeks\cms\models\CmsContentElement $model) {
29 29
             return $model->cmsContent->name;
30 30
         },
31 31
         'format' => 'raw',
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     [
54 54
         'class' => \yii\grid\DataColumn::className(),
55
-        'value' => function (\skeeks\cms\models\CmsContentElement $model) {
55
+        'value' => function(\skeeks\cms\models\CmsContentElement $model) {
56 56
             if (!$model->cmsTree) {
57 57
                 return null;
58 58
             }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
     [
80 80
         'class' => \yii\grid\DataColumn::className(),
81
-        'value' => function (\skeeks\cms\models\CmsContentElement $model) {
81
+        'value' => function(\skeeks\cms\models\CmsContentElement $model) {
82 82
             $result = [];
83 83
 
84 84
             if ($model->cmsContentElementTrees) {
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
     [
106 106
         'class' => \yii\grid\DataColumn::className(),
107
-        'value' => function (\skeeks\cms\models\CmsContentElement $model) {
107
+        'value' => function(\skeeks\cms\models\CmsContentElement $model) {
108 108
 
109 109
             return \yii\helpers\Html::a('<i class="glyphicon glyphicon-arrow-right"></i>', $model->absoluteUrl, [
110 110
                 'target' => '_blank',
Please login to merge, or discard this patch.
src/views/admin-tools/select-file.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
         [
162 162
             'class' => \yii\grid\DataColumn::className(),
163
-            'value' => function (\skeeks\cms\models\StorageFile $model) {
163
+            'value' => function(\skeeks\cms\models\StorageFile $model) {
164 164
                 return \yii\helpers\Html::a('<i class="glyphicon glyphicon-circle-arrow-left"></i> ' . \Yii::t('skeeks/cms',
165 165
                         'Choose file'), $model->src, [
166 166
                     'class' => 'btn btn-primary',
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 
180 180
         [
181 181
             'class' => \yii\grid\DataColumn::className(),
182
-            'value' => function (\skeeks\cms\models\StorageFile $model) {
182
+            'value' => function(\skeeks\cms\models\StorageFile $model) {
183 183
                 if ($model->isImage()) {
184 184
 
185 185
                     $smallImage = \Yii::$app->imaging->getImagingUrl($model->src,
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
         [
213 213
             'class' => \yii\grid\DataColumn::className(),
214
-            'value' => function (\skeeks\cms\models\StorageFile $model) {
214
+            'value' => function(\skeeks\cms\models\StorageFile $model) {
215 215
                 $model->cluster_id;
216 216
                 $cluster = \Yii::$app->storage->getCluster($model->cluster_id);
217 217
                 return $cluster->name;
Please login to merge, or discard this patch.