Completed
Push — master ( f0ed5f...2ddb0a )
by Xu
173:23 queued 133:27
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.
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.
config/console.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 $config = [
4 4
     'components' => [
5 5
         'cache' => [
6
-            'keyPrefix' => 'rest',       //前缀
6
+            'keyPrefix' => 'rest', //前缀
7 7
         ],
8 8
         'request' => [
9 9
             'class' => yuncms\console\Request::class,
Please login to merge, or discard this patch.