Completed
Push — master ( 48e609...adf01f )
by Xu
68:47 queued 28:44
created
src/admin/controllers/UserRuleController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,10 +73,10 @@  discard block
 block discarded – undo
73 73
         $model = new UserBizRule(null);
74 74
         if ($model->load(Yii::$app->request->post()) && $model->save()) {
75 75
             UserRBACHelper::invalidate();
76
-            Yii::$app->getSession()->setFlash('success', Yii::t('yuncms','Create success.'));
76
+            Yii::$app->getSession()->setFlash('success', Yii::t('yuncms', 'Create success.'));
77 77
             return $this->redirect(['view', 'id' => $model->name]);
78 78
         } else {
79
-            return $this->render('create', ['model' => $model,]);
79
+            return $this->render('create', ['model' => $model, ]);
80 80
         }
81 81
     }
82 82
 
@@ -93,11 +93,11 @@  discard block
 block discarded – undo
93 93
         $model = $this->findModel($id);
94 94
         if ($model->load(Yii::$app->request->post()) && $model->save()) {
95 95
             UserRBACHelper::invalidate();
96
-            Yii::$app->getSession()->setFlash('success', Yii::t('yuncms','Update success.'));
96
+            Yii::$app->getSession()->setFlash('success', Yii::t('yuncms', 'Update success.'));
97 97
             return $this->redirect(['view', 'id' => $model->name]);
98 98
         }
99 99
 
100
-        return $this->render('update', ['model' => $model,]);
100
+        return $this->render('update', ['model' => $model, ]);
101 101
     }
102 102
 
103 103
     /**
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $model = $this->findModel($id);
114 114
         Yii::$app->authManager->remove($model->item);
115 115
         UserRBACHelper::invalidate();
116
-        Yii::$app->getSession()->setFlash('success', Yii::t('yuncms','Delete success.'));
116
+        Yii::$app->getSession()->setFlash('success', Yii::t('yuncms', 'Delete success.'));
117 117
         return $this->redirect(['index']);
118 118
     }
119 119
 
Please login to merge, or discard this patch.