Completed
Push — master ( f51ae2...75b575 )
by monster
01:42
created
controllers/DefaultController.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
models/Setting.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 
8 8
 namespace pheme\settings\models;
9 9
 
10
-use Yii;
11 10
 use yii\helpers\Json;
12 11
 use yii\base\DynamicModel;
13 12
 use pheme\settings\Module;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
messages/messages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
views/default/view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
 ?>
Please login to merge, or discard this patch.
views/default/_form.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
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'
Please login to merge, or discard this patch.
views/default/update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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]];
Please login to merge, or discard this patch.