@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * Lists all Settings. |
| 65 | - * @return mixed |
|
| 65 | + * @return string |
|
| 66 | 66 | */ |
| 67 | 67 | public function actionIndex() |
| 68 | 68 | { |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | /** |
| 82 | 82 | * Displays the details of a single Setting. |
| 83 | 83 | * @param integer $id |
| 84 | - * @return mixed |
|
| 84 | + * @return string |
|
| 85 | 85 | */ |
| 86 | 86 | public function actionView($id) |
| 87 | 87 | { |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | * Deletes an existing Setting. |
| 141 | 141 | * If deletion is successful, the browser will be redirected to the 'index' page. |
| 142 | 142 | * @param integer $id |
| 143 | - * @return mixed |
|
| 143 | + * @return \yii\web\Response |
|
| 144 | 144 | */ |
| 145 | 145 | public function actionDelete($id) |
| 146 | 146 | { |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | 'sourcePath' => __DIR__ . DIRECTORY_SEPARATOR . '..', |
| 6 | 6 | // array, required, list of language codes that the extracted messages |
| 7 | 7 | // should be translated to. For example, ['zh-CN', 'de']. |
| 8 | - 'languages' => ['de', 'fa-IR', 'gr', 'it', 'pl','ru', 'uk', 'vn', 'th', 'zh-CN', 'zh-TW'], |
|
| 8 | + 'languages' => ['de', 'fa-IR', 'gr', 'it', 'pl', 'ru', 'uk', 'vn', 'th', 'zh-CN', 'zh-TW'], |
|
| 9 | 9 | // string, the name of the function for translating messages. |
| 10 | 10 | // Defaults to 'Yii::t'. This is used as a mark to find the messages to be |
| 11 | 11 | // translated. You may use a string for single function name or an array for |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | * @var pheme\settings\models\Setting $model |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -$this->title = $model->section. '.' . $model->key; |
|
| 17 | +$this->title = $model->section . '.' . $model->key; |
|
| 18 | 18 | $this->params['breadcrumbs'][] = ['label' => Module::t('settings', 'Settings'), 'url' => ['index']]; |
| 19 | 19 | $this->params['breadcrumbs'][] = $this->title; |
| 20 | 20 | ?> |
@@ -37,8 +37,7 @@ |
||
| 37 | 37 | <div class="form-group"> |
| 38 | 38 | <?= |
| 39 | 39 | Html::submitButton( |
| 40 | - $model->isNewRecord ? Module::t('settings', 'Create') : |
|
| 41 | - Module::t('settings', 'Update'), |
|
| 40 | + $model->isNewRecord ? Module::t('settings', 'Create') : Module::t('settings', 'Update'), |
|
| 42 | 41 | [ |
| 43 | 42 | 'class' => $model->isNewRecord ? |
| 44 | 43 | 'btn btn-success' : 'btn btn-primary' |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | [ |
| 20 | 20 | 'modelClass' => Module::t('settings', 'Setting'), |
| 21 | 21 | ] |
| 22 | - ) . ' ' . $model->section. '.' . $model->key; |
|
| 22 | + ) . ' ' . $model->section . '.' . $model->key; |
|
| 23 | 23 | |
| 24 | 24 | $this->params['breadcrumbs'][] = ['label' => Module::t('settings', 'Settings'), 'url' => ['index']]; |
| 25 | 25 | $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | 'url' => ['value', 'url'], |
| 37 | 37 | 'object' => [ |
| 38 | 38 | 'value', |
| 39 | - function ($attribute, $params) { |
|
| 39 | + function($attribute, $params) { |
|
| 40 | 40 | $object = null; |
| 41 | 41 | try { |
| 42 | 42 | Json::decode($this->$attribute); |