Completed
Branch master (bf31fb)
by Александр
77:38 queued 37:39
created
src/views/admin-tools/select-cms-element.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                 'visible' => false,
102 102
                 'format' => 'raw',
103 103
                 'class' => \yii\grid\DataColumn::className(),
104
-                'value' => function ($model, $key, $index) use ($name) {
104
+                'value' => function($model, $key, $index) use ($name) {
105 105
                     if (is_array($model->{$name})) {
106 106
                         return implode(",", $model->{$name});
107 107
                     } else {
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                     'format' => 'raw',
179 179
                     'filter' => $filter,
180 180
                     'class' => \yii\grid\DataColumn::className(),
181
-                    'value' => function ($model, $key, $index) use ($name) {
181
+                    'value' => function($model, $key, $index) use ($name) {
182 182
                         /**
183 183
                          * @var $model \skeeks\cms\models\CmsContentElement
184 184
                          */
Please login to merge, or discard this patch.
src/views/admin-tree/_form.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -358,14 +358,14 @@  discard block
 block discarded – undo
358 358
                                 [
359 359
                                     'label' => \Yii::t('skeeks/cms', 'Type'),
360 360
                                     'format' => 'raw',
361
-                                    'value' => function (\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
361
+                                    'value' => function(\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
362 362
                                         return $cmsContentProperty->handler->name;
363 363
                                     }
364 364
                                 ],
365 365
 
366 366
                                 [
367 367
                                     'label' => \Yii::t('skeeks/cms', 'Content'),
368
-                                    'value' => function (\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
368
+                                    'value' => function(\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
369 369
                                         $contents = \yii\helpers\ArrayHelper::map($cmsContentProperty->cmsContents,
370 370
                                             'id', 'name');
371 371
                                         return implode(', ', $contents);
@@ -375,10 +375,10 @@  discard block
 block discarded – undo
375 375
                                 [
376 376
                                     'label' => \Yii::t('skeeks/cms', 'Sections'),
377 377
                                     'format' => 'raw',
378
-                                    'value' => function (\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
378
+                                    'value' => function(\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
379 379
                                         if ($cmsContentProperty->cmsTrees) {
380 380
                                             $contents = \yii\helpers\ArrayHelper::map($cmsContentProperty->cmsTrees,
381
-                                                'id', function ($cmsTree) {
381
+                                                'id', function($cmsTree) {
382 382
                                                     $path = [];
383 383
 
384 384
                                                     if ($cmsTree->parents) {
Please login to merge, or discard this patch.
src/views/admin-cms-content-property/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
             [
31 31
                 'label' => \Yii::t('skeeks/cms', 'Type'),
32 32
                 'format' => 'raw',
33
-                'value' => function (\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
33
+                'value' => function(\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
34 34
                     return $cmsContentProperty->handler->name;
35 35
                 }
36 36
             ],
37 37
 
38 38
             [
39 39
                 'label' => \Yii::t('skeeks/cms', 'Content'),
40
-                'value' => function (\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
40
+                'value' => function(\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
41 41
                     $contents = \yii\helpers\ArrayHelper::map($cmsContentProperty->cmsContents, 'id', 'name');
42 42
                     return implode(', ', $contents);
43 43
                 }
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
             [
47 47
                 'label' => \Yii::t('skeeks/cms', 'Sections'),
48 48
                 'format' => 'raw',
49
-                'value' => function (\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
49
+                'value' => function(\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
50 50
                     if ($cmsContentProperty->cmsTrees) {
51 51
                         $contents = \yii\helpers\ArrayHelper::map($cmsContentProperty->cmsTrees, 'id',
52
-                            function ($cmsTree) {
52
+                            function($cmsTree) {
53 53
                                 $path = [];
54 54
 
55 55
                                 if ($cmsTree->parents) {
Please login to merge, or discard this patch.
src/views/admin-cms-content/_form.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 <div class="row">
78 78
     <div class="col-md-3">
79 79
         <?= $form->fieldSelect($model, 'parent_content_id', \skeeks\cms\models\CmsContent::getDataForSelect(true,
80
-            function (\yii\db\ActiveQuery $activeQuery) use ($model) {
80
+            function(\yii\db\ActiveQuery $activeQuery) use ($model) {
81 81
                 if (!$model->isNewRecord) {
82 82
                     $activeQuery->andWhere(['!=', 'id', $model->id]);
83 83
                 }
@@ -177,14 +177,14 @@  discard block
 block discarded – undo
177 177
                         [
178 178
                             'label' => \Yii::t('skeeks/cms', 'Type'),
179 179
                             'format' => 'raw',
180
-                            'value' => function (\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
180
+                            'value' => function(\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
181 181
                                 return $cmsContentProperty->handler->name;
182 182
                             }
183 183
                         ],
184 184
 
185 185
                         [
186 186
                             'label' => \Yii::t('skeeks/cms', 'Content'),
187
-                            'value' => function (\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
187
+                            'value' => function(\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
188 188
                                 $contents = \yii\helpers\ArrayHelper::map($cmsContentProperty->cmsContents, 'id',
189 189
                                     'name');
190 190
                                 return implode(', ', $contents);
@@ -194,10 +194,10 @@  discard block
 block discarded – undo
194 194
                         [
195 195
                             'label' => \Yii::t('skeeks/cms', 'Sections'),
196 196
                             'format' => 'raw',
197
-                            'value' => function (\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
197
+                            'value' => function(\skeeks\cms\models\CmsContentProperty $cmsContentProperty) {
198 198
                                 if ($cmsContentProperty->cmsTrees) {
199 199
                                     $contents = \yii\helpers\ArrayHelper::map($cmsContentProperty->cmsTrees, 'id',
200
-                                        function ($cmsTree) {
200
+                                        function($cmsTree) {
201 201
                                             $path = [];
202 202
 
203 203
                                             if ($cmsTree->parents) {
Please login to merge, or discard this patch.
src/views/admin-cms-content-property-enum/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
             [
45 45
                 'label' => \Yii::t('skeeks/cms', 'Property'),
46 46
                 'attribute' => 'p.name',
47
-                'value' => function (\skeeks\cms\models\CmsContentPropertyEnum $cmsContentPropertyEnum) {
47
+                'value' => function(\skeeks\cms\models\CmsContentPropertyEnum $cmsContentPropertyEnum) {
48 48
                     return $cmsContentPropertyEnum->property->name;
49 49
                 }
50 50
             ],
Please login to merge, or discard this patch.
src/views/admin-cms-tree-type-property/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             'priority',
31 31
             [
32 32
                 'label' => \Yii::t('skeeks/cms', 'Sections'),
33
-                'value' => function (\skeeks\cms\models\CmsTreeTypeProperty $cmsContentProperty) {
33
+                'value' => function(\skeeks\cms\models\CmsTreeTypeProperty $cmsContentProperty) {
34 34
                     $contents = \yii\helpers\ArrayHelper::map($cmsContentProperty->cmsTreeTypes, 'id', 'name');
35 35
                     return implode(', ', $contents);
36 36
                 }
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             [
39 39
                 'label' => \Yii::t('skeeks/cms', 'Number of partitions where the property is filled'),
40 40
                 'format' => 'raw',
41
-                'value' => function (\skeeks\cms\models\CmsTreeTypeProperty $cmsContentProperty) {
41
+                'value' => function(\skeeks\cms\models\CmsTreeTypeProperty $cmsContentProperty) {
42 42
                     return \yii\helpers\Html::a($cmsContentProperty->getElementProperties()->andWhere([
43 43
                         '!=',
44 44
                         'value',
Please login to merge, or discard this patch.
src/views/admin-user/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     'filterModel' => $searchModel,
43 43
     'adminController' => $controller,
44 44
     'pjax' => $pjax,
45
-    'chooseCallback' => function ($model) {
45
+    'chooseCallback' => function($model) {
46 46
         return \yii\helpers\ArrayHelper::merge($model->toArray(), [
47 47
             //'url' => $model->url,
48 48
             'image' => $model->image ? $model->image->src : "",
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                     'size' => 1,
94 94
                     'class' => 'form-control'
95 95
                 ]),
96
-            'value' => function (\skeeks\cms\models\User $model) {
96
+            'value' => function(\skeeks\cms\models\User $model) {
97 97
                 $result = [];
98 98
 
99 99
                 if ($roles = \Yii::$app->authManager->getRolesByUser($model->id)) {
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         [
118 118
             'class' => \yii\grid\DataColumn::className(),
119 119
             'label' => "Смотреть",
120
-            'value' => function (\skeeks\cms\models\CmsUser $model) {
120
+            'value' => function(\skeeks\cms\models\CmsUser $model) {
121 121
 
122 122
                 return \yii\helpers\Html::a('<i class="glyphicon glyphicon-arrow-right"></i>', $model->getProfileUrl(),
123 123
                     [
Please login to merge, or discard this patch.
src/views/admin-cms-content-element/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     'autoColumns' => false,
37 37
     'pjax' => $pjax,
38 38
     'adminController' => $controller,
39
-    'chooseCallback' => function ($model) {
39
+    'chooseCallback' => function($model) {
40 40
         return \yii\helpers\ArrayHelper::merge($model->toArray(), [
41 41
             'url' => $model->url,
42 42
             'image' => $model->image ? $model->image->src : ""
Please login to merge, or discard this patch.
src/views/admin-cms-tree-type-property-enum/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
             [
45 45
                 'label' => \Yii::t('skeeks/cms', 'Property'),
46 46
                 'attribute' => 'p.name',
47
-                'value' => function (\skeeks\cms\models\CmsTreeTypePropertyEnum $cmsContentPropertyEnum) {
47
+                'value' => function(\skeeks\cms\models\CmsTreeTypePropertyEnum $cmsContentPropertyEnum) {
48 48
                     return $cmsContentPropertyEnum->property->name;
49 49
                 }
50 50
             ],
Please login to merge, or discard this patch.