Test Setup Failed
Branch master (d2d35e)
by Александр
01:37
created
src/relatedProperties/models/RelatedPropertyEnumModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,14 +65,14 @@
 block discarded – undo
65 65
             [
66 66
                 'code',
67 67
                 'default',
68
-                'value' => function ($model, $attribute) {
68
+                'value' => function($model, $attribute) {
69 69
                     return md5(rand(1, 10) . time());
70 70
                 }
71 71
             ],
72 72
             [
73 73
                 'priority',
74 74
                 'default',
75
-                'value' => function ($model, $attribute) {
75
+                'value' => function($model, $attribute) {
76 76
                     return 500;
77 77
                 }
78 78
             ],
Please login to merge, or discard this patch.
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/relatedProperties/models/RelatedPropertyModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             //[['code'], 'string', 'max' => 64],
141 141
             [
142 142
                 ['code'],
143
-                function ($attribute) {
143
+                function($attribute) {
144 144
                     if (!preg_match('/^[a-zA-Z]{1}[a-zA-Z0-9]{1,255}$/',
145 145
                         $this->$attribute)) //if(!preg_match('/(^|.*\])([\w\.]+)(\[.*|$)/', $this->$attribute))
146 146
                     {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             [
156 156
                 'code',
157 157
                 'default',
158
-                'value' => function ($model, $attribute) {
158
+                'value' => function($model, $attribute) {
159 159
                     return "property" . StringHelper::ucfirst(md5(rand(1, 10) . time()));
160 160
                 }
161 161
             ],
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.