Completed
Push — master ( 70f453...772184 )
by Xu
61:36 queued 21:42
created
src/admin/views/item/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
                         'attribute' => 'description',
81 81
                         'label' => Yii::t('yuncms', 'Role Description'),
82 82
                     ],
83
-                    ['class' => 'yii\grid\ActionColumn',],
83
+                    ['class' => 'yii\grid\ActionColumn', ],
84 84
                 ],
85 85
             ])
86 86
             ?>
Please login to merge, or discard this patch.
src/admin/views/menu/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
                         'class' => 'yii\grid\ActionColumn',
67 67
                         'header' => Yii::t('yuncms', 'Operation'),
68 68
                         'template' => '{add} {view} {update} {delete}',
69
-                        'buttons' => ['add' => function ($url, $model, $key) {
69
+                        'buttons' => ['add' => function($url, $model, $key) {
70 70
                             return Html::a('<span class="fa fa-plus"></span>',
71 71
                                 Url::toRoute(['/admin/menu/create', 'parent' => $model->id]), [
72 72
                                     'title' => Yii::t('yuncms', 'Add subMenu'),
Please login to merge, or discard this patch.
src/admin/views/security/login.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
                 'autocomplete' => 'off',
57 57
                 'placeholder' => Yii::t('yuncms', 'Password')
58 58
             ],
59
-           'errorOptions' => ['class' => 'help-block help-block-error full-width','style'=>'text-align:left'],
59
+            'errorOptions' => ['class' => 'help-block help-block-error full-width','style'=>'text-align:left'],
60 60
         ])->passwordInput()->label(false) ?>
61 61
 
62 62
         <?= $form->field($model, 'verifyCode', [
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                 'autocomplete' => 'off',
49 49
                 'placeholder' => Yii::t('yuncms', 'Username')
50 50
             ],
51
-            'errorOptions' => ['class' => 'help-block help-block-error full-width','style'=>'text-align:left'],
51
+            'errorOptions' => ['class' => 'help-block help-block-error full-width', 'style'=>'text-align:left'],
52 52
         ])->label(false); ?>
53 53
 
54 54
         <?= $form->field($model, 'password', [
@@ -56,11 +56,11 @@  discard block
 block discarded – undo
56 56
                 'autocomplete' => 'off',
57 57
                 'placeholder' => Yii::t('yuncms', 'Password')
58 58
             ],
59
-           'errorOptions' => ['class' => 'help-block help-block-error full-width','style'=>'text-align:left'],
59
+           'errorOptions' => ['class' => 'help-block help-block-error full-width', 'style'=>'text-align:left'],
60 60
         ])->passwordInput()->label(false) ?>
61 61
 
62 62
         <?= $form->field($model, 'verifyCode', [
63
-            'errorOptions' => ['class' => 'help-block help-block-error full-width','style'=>'text-align:left'],
63
+            'errorOptions' => ['class' => 'help-block help-block-error full-width', 'style'=>'text-align:left'],
64 64
         ])->widget(Captcha::className(), [
65 65
             'captchaAction' => '/admin/security/captcha',
66 66
             'options' => [
Please login to merge, or discard this patch.
src/admin/controllers/RuleController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -71,10 +71,10 @@  discard block
 block discarded – undo
71 71
         $model = new AdminBizRule(null);
72 72
         if ($model->load(Yii::$app->request->post()) && $model->save()) {
73 73
             Helper::invalidate();
74
-            Yii::$app->getSession()->setFlash('success', Yii::t('yuncms','Create success.'));
74
+            Yii::$app->getSession()->setFlash('success', Yii::t('yuncms', 'Create success.'));
75 75
             return $this->redirect(['view', 'id' => $model->name]);
76 76
         } else {
77
-            return $this->render('create', ['model' => $model,]);
77
+            return $this->render('create', ['model' => $model, ]);
78 78
         }
79 79
     }
80 80
 
@@ -91,11 +91,11 @@  discard block
 block discarded – undo
91 91
         $model = $this->findModel($id);
92 92
         if ($model->load(Yii::$app->request->post()) && $model->save()) {
93 93
             Helper::invalidate();
94
-            Yii::$app->getSession()->setFlash('success', Yii::t('yuncms','Update success.'));
94
+            Yii::$app->getSession()->setFlash('success', Yii::t('yuncms', 'Update success.'));
95 95
             return $this->redirect(['view', 'id' => $model->name]);
96 96
         }
97 97
 
98
-        return $this->render('update', ['model' => $model,]);
98
+        return $this->render('update', ['model' => $model, ]);
99 99
     }
100 100
 
101 101
     /**
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $model = $this->findModel($id);
111 111
         Yii::$app->authManager->remove($model->item);
112 112
         Helper::invalidate();
113
-        Yii::$app->getSession()->setFlash('success', Yii::t('yuncms','Delete success.'));
113
+        Yii::$app->getSession()->setFlash('success', Yii::t('yuncms', 'Delete success.'));
114 114
         return $this->redirect(['index']);
115 115
     }
116 116
 
Please login to merge, or discard this patch.