@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | /** |
| 52 | 52 | * Lists all Feedback models. |
| 53 | 53 | * |
| 54 | - * @return mixed |
|
| 54 | + * @return string |
|
| 55 | 55 | */ |
| 56 | 56 | public function actionIndex() |
| 57 | 57 | { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * Displays a single Feedback model. |
| 69 | 69 | * |
| 70 | 70 | * @param integer $id |
| 71 | - * @return mixed |
|
| 71 | + * @return string |
|
| 72 | 72 | */ |
| 73 | 73 | public function actionView($id) |
| 74 | 74 | { |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | 'actions' => ['create'], |
| 40 | 40 | 'allow' => true, |
| 41 | 41 | 'roles' => ['@'], |
| 42 | - 'matchCallback' => function () { |
|
| 42 | + 'matchCallback' => function() { |
|
| 43 | 43 | return !Yii::$app->user->can(User::ROLE_ADMIN); |
| 44 | 44 | }, |
| 45 | 45 | ], |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * Lists all MailTemplate models. |
| 39 | 39 | * |
| 40 | - * @return mixed |
|
| 40 | + * @return string |
|
| 41 | 41 | */ |
| 42 | 42 | public function actionIndex() |
| 43 | 43 | { |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | * Displays a single MailTemplate model. |
| 55 | 55 | * |
| 56 | 56 | * @param integer $id |
| 57 | - * @return mixed |
|
| 57 | + * @return string |
|
| 58 | 58 | */ |
| 59 | 59 | public function actionView($id) |
| 60 | 60 | { |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * Lists all Users models. |
| 39 | 39 | * |
| 40 | - * @return mixed |
|
| 40 | + * @return string |
|
| 41 | 41 | */ |
| 42 | 42 | public function actionIndex() |
| 43 | 43 | { |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | * Displays a single Users model. |
| 55 | 55 | * |
| 56 | 56 | * @param integer $id |
| 57 | - * @return mixed |
|
| 57 | + * @return string |
|
| 58 | 58 | */ |
| 59 | 59 | public function actionView($id) |
| 60 | 60 | { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | { |
| 50 | 50 | return [ |
| 51 | 51 | [['body'], 'string'], |
| 52 | - [['name',], 'required'], |
|
| 52 | + [['name', ], 'required'], |
|
| 53 | 53 | [['updated_at'], 'safe'], |
| 54 | 54 | ]; |
| 55 | 55 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | return [ |
| 20 | 20 | [['id'], 'integer'], |
| 21 | 21 | [['key', 'name'], 'string', 'max' => 255], |
| 22 | - [['updated_at',], 'safe'], |
|
| 22 | + [['updated_at', ], 'safe'], |
|
| 23 | 23 | ]; |
| 24 | 24 | } |
| 25 | 25 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | 'email:email', |
| 31 | 31 | [ |
| 32 | 32 | 'attribute' => 'message', |
| 33 | - 'value' => function ($model) { |
|
| 33 | + 'value' => function($model) { |
|
| 34 | 34 | return StringHelper::truncate($model->message, 150); |
| 35 | 35 | }, |
| 36 | 36 | ], |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | ], |
| 47 | 47 | ['prompt' => Yii::t('feedback', 'All'), 'class' => 'form-control'] |
| 48 | 48 | ), |
| 49 | - 'content' => function ($model) { |
|
| 49 | + 'content' => function($model) { |
|
| 50 | 50 | $label = Feedback::STATUS_ANSWERED === $model->status ? 'success' : 'danger'; |
| 51 | 51 | return "<span class='visible-md-block visible-xs-block |
| 52 | 52 | visible-sm-block visible-lg-block label label-{$label}'>{$model->status}</span>"; |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | 'clientOptions' => ['format' => 'yyyy-mm-d'] |
| 71 | 71 | ]), |
| 72 | 72 | 'format' => 'html', |
| 73 | - 'content' => function ($model) { |
|
| 73 | + 'content' => function($model) { |
|
| 74 | 74 | return Yii::$app->formatter->asDatetime($model->updated_at); |
| 75 | 75 | }, |
| 76 | 76 | ], |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | 'contentOptions' => ['style' => 'text-align: center'], |
| 82 | 82 | 'template' => '{view} {answered} ', |
| 83 | 83 | 'buttons' => [ |
| 84 | - 'answered' => function ($url, $model) { |
|
| 84 | + 'answered' => function($url, $model) { |
|
| 85 | 85 | return Feedback::STATUS_NEW === $model->status ? |
| 86 | 86 | Html::beginForm( |
| 87 | 87 | ['/feedback/management/update?id=' . $model->id], |
@@ -97,8 +97,7 @@ discard block |
||
| 97 | 97 | 'data' => ['method' => 'post'], |
| 98 | 98 | ] |
| 99 | 99 | ) |
| 100 | - . Html::endForm() : |
|
| 101 | - Html::a( |
|
| 100 | + . Html::endForm() : Html::a( |
|
| 102 | 101 | '<span class="glyphicon glyphicon-comment text-muted"></span>', |
| 103 | 102 | '#', |
| 104 | 103 | ['title' => Yii::t('feedback', 'Answered')] |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | <?= $form->field($model, 'message')->textarea(['rows' => 6]) ?> |
| 30 | 30 | |
| 31 | 31 | |
| 32 | - <?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [ 'captchaAction' => '/site/captcha', |
|
| 32 | + <?= $form->field($model, 'verifyCode')->widget(Captcha::className(), ['captchaAction' => '/site/captcha', |
|
| 33 | 33 | 'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>', |
| 34 | 34 | ]) ?> |
| 35 | 35 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | 'clientOptions' => ['format' => 'yyyy-mm-d'] |
| 35 | 35 | ]), |
| 36 | 36 | 'format' => 'html', |
| 37 | - 'content' => function ($model) { |
|
| 37 | + 'content' => function($model) { |
|
| 38 | 38 | return Yii::$app->formatter->asDatetime($model->created_at); |
| 39 | 39 | }, |
| 40 | 40 | ], |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | 'clientOptions' => ['format' => 'yyyy-mm-d'] |
| 48 | 48 | ]), |
| 49 | 49 | 'format' => 'html', |
| 50 | - 'content' => function ($model) { |
|
| 50 | + 'content' => function($model) { |
|
| 51 | 51 | return Yii::$app->formatter->asDatetime($model->updated_at); |
| 52 | 52 | }, |
| 53 | 53 | ], |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | |
| 19 | 19 | <div class="form-group"> |
| 20 | - <?= Html::submitButton(Yii::t('option', 'Update'), ['class' => 'btn btn-success' ]) ?> |
|
| 20 | + <?= Html::submitButton(Yii::t('option', 'Update'), ['class' => 'btn btn-success']) ?> |
|
| 21 | 21 | <?= Html::a(Yii::t('option', 'Cancel'), ['index'], ['class' => 'btn btn-default']); ?> |
| 22 | 22 | </div> |
| 23 | 23 | |