Completed
Push — master ( 282cbe...e728ca )
by Xu
38:30
created
src/user/models/UserSupport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     public function rules()
65 65
     {
66 66
         return [
67
-            [[ 'model_id'], 'required'],
67
+            [['model_id'], 'required'],
68 68
             [['user_id', 'model_id'], 'integer'],
69 69
             [['user_id'], 'exist', 'skipOnError' => true, 'targetClass' => User::class, 'targetAttribute' => ['user_id' => 'id']],
70 70
         ];
Please login to merge, or discard this patch.
config/console.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
 return [
20 20
     'components' => [
21 21
         'cache' => [
22
-            'keyPrefix' => 'rest',       //前缀
22
+            'keyPrefix' => 'rest', //前缀
23 23
         ],
24 24
         'request' => [
25 25
             'class' => yuncms\console\Request::class,
Please login to merge, or discard this patch.
src/models/Attachment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
                 'attributes' => [
73 73
                     ActiveRecord::EVENT_BEFORE_INSERT => 'user_id'
74 74
                 ],
75
-                'value' => function () {
75
+                'value' => function() {
76 76
                     return Yii::$app->user->id;
77 77
                 }
78 78
             ],
Please login to merge, or discard this patch.