@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | // ], |
| 75 | 75 | [ |
| 76 | 76 | 'attribute' => 'registration_ip', |
| 77 | - 'value' => function ($model) { |
|
| 77 | + 'value' => function($model) { |
|
| 78 | 78 | return $model->registration_ip == null |
| 79 | 79 | ? '<span class="not-set">' . Yii::t('yii', '(not set)') . '</span>' |
| 80 | 80 | : $model->registration_ip; |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | ], |
| 97 | 97 | [ |
| 98 | 98 | 'header' => Yii::t('yuncms', 'Confirmation'), |
| 99 | - 'value' => function ($model) { |
|
| 99 | + 'value' => function($model) { |
|
| 100 | 100 | if ($model->isEmailConfirmed) { |
| 101 | 101 | return '<div class="text-center"><span class="text-success">' . Yii::t('yuncms', 'Confirmed') . '</span></div>'; |
| 102 | 102 | } else { |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | ], |
| 113 | 113 | [ |
| 114 | 114 | 'header' => Yii::t('yuncms', 'Block status'), |
| 115 | - 'value' => function ($model) { |
|
| 115 | + 'value' => function($model) { |
|
| 116 | 116 | if ($model->isBlocked) { |
| 117 | 117 | return Html::a(Yii::t('yuncms', 'Unblock'), ['block', 'id' => $model->id], [ |
| 118 | 118 | 'class' => 'btn btn-xs btn-success btn-block', |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | [ |
| 133 | 133 | 'class' => 'yuncms\grid\ActionColumn', |
| 134 | 134 | 'template' => '{assignment} {view} {update} {delete}', |
| 135 | - 'buttons' => ['assignment' => function ($url, $model, $key) { |
|
| 135 | + 'buttons' => ['assignment' => function($url, $model, $key) { |
|
| 136 | 136 | return Html::a('<span class="glyphicon glyphicon-dashboard"></span>', |
| 137 | 137 | Url::toRoute(['user-assignment/view', 'id' => $model->id]), [ |
| 138 | 138 | 'title' => Yii::t('yuncms', 'Assignment'), |