Test Setup Failed
Push — master ( 5727f4...a2a7fc )
by Xu
36:42
created
src/notifications/migrations/m180410_092555_create_notification_table.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -24,19 +24,19 @@
 block discarded – undo
24 24
         }
25 25
         // https://segmentfault.com/q/1010000000672529/a-1020000000679702
26 26
         $this->createTable($this->tableName, [
27
-            'id' => $this->bigPrimaryKey()->unsigned()->comment('Id'),//通知ID
28
-            'verb' => $this->string(32)->comment('Verb'),//活动图片
29
-            'template' => $this->string()->comment('Template'),//通知类型
30
-            'channel' => $this->string(64)->comment('Template'),//通知类型
31
-            'is_read' => $this->boolean()->defaultValue(false)->comment('Read'),//是否已读
32
-            'is_pending' => $this->boolean()->defaultValue(false)->comment('Pending'),//是否已经推送
33
-            'sender_id' => $this->integer()->unsigned()->comment('Sender Id'),//发送者ID
34
-            'sender_class' => $this->string()->comment('Sender Class'),//发送者模型
35
-            'receiver_id' => $this->unsignedInteger()->comment('Receiver Id'),//接收器
36
-            'entity_id' => $this->unsignedInteger()->comment('Entity'),//任务对象
37
-            'source_id' => $this->unsignedInteger()->comment('Source'),//原有任务对象
38
-            'target_id' => $this->unsignedInteger()->comment('Target'),//目标对象
39
-            'publish_at' => $this->integer()->unsigned()->notNull()->comment('Publish At'),//发送时间
27
+            'id' => $this->bigPrimaryKey()->unsigned()->comment('Id'), //通知ID
28
+            'verb' => $this->string(32)->comment('Verb'), //活动图片
29
+            'template' => $this->string()->comment('Template'), //通知类型
30
+            'channel' => $this->string(64)->comment('Template'), //通知类型
31
+            'is_read' => $this->boolean()->defaultValue(false)->comment('Read'), //是否已读
32
+            'is_pending' => $this->boolean()->defaultValue(false)->comment('Pending'), //是否已经推送
33
+            'sender_id' => $this->integer()->unsigned()->comment('Sender Id'), //发送者ID
34
+            'sender_class' => $this->string()->comment('Sender Class'), //发送者模型
35
+            'receiver_id' => $this->unsignedInteger()->comment('Receiver Id'), //接收器
36
+            'entity_id' => $this->unsignedInteger()->comment('Entity'), //任务对象
37
+            'source_id' => $this->unsignedInteger()->comment('Source'), //原有任务对象
38
+            'target_id' => $this->unsignedInteger()->comment('Target'), //目标对象
39
+            'publish_at' => $this->integer()->unsigned()->notNull()->comment('Publish At'), //发送时间
40 40
         ], $tableOptions);
41 41
 
42 42
         $this->createIndex('notification_index', $this->tableName, ['sender_id', 'sender_class']);
Please login to merge, or discard this patch.
src/redis/jobs/CreateActiveRecordJob.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     {
43 43
         /** @var ActiveRecord $class */
44 44
         $class = $this->modelClass;
45
-        $class::create($this->attributes,$this->runValidation);
45
+        $class::create($this->attributes, $this->runValidation);
46 46
     }
47 47
 
48 48
     /**
Please login to merge, or discard this patch.
src/sphinx/jobs/CreateActiveRecordJob.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     {
43 43
         /** @var ActiveRecord $class */
44 44
         $class = $this->modelClass;
45
-        $class::create($this->attributes,$this->runValidation);
45
+        $class::create($this->attributes, $this->runValidation);
46 46
     }
47 47
 
48 48
     /**
Please login to merge, or discard this patch.
src/behaviors/JsonBehavior.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -40,30 +40,30 @@
 block discarded – undo
40 40
     public function events()
41 41
     {
42 42
         return [
43
-            ActiveRecord::EVENT_INIT => function () {
43
+            ActiveRecord::EVENT_INIT => function() {
44 44
                 $this->initialization();
45 45
             },
46
-            ActiveRecord::EVENT_AFTER_FIND => function () {
46
+            ActiveRecord::EVENT_AFTER_FIND => function() {
47 47
                 $this->decode();
48 48
             },
49
-            ActiveRecord::EVENT_BEFORE_INSERT => function () {
49
+            ActiveRecord::EVENT_BEFORE_INSERT => function() {
50 50
                 $this->encode();
51 51
             },
52
-            ActiveRecord::EVENT_BEFORE_UPDATE => function () {
52
+            ActiveRecord::EVENT_BEFORE_UPDATE => function() {
53 53
                 $this->encode();
54 54
             },
55
-            ActiveRecord::EVENT_AFTER_INSERT => function () {
55
+            ActiveRecord::EVENT_AFTER_INSERT => function() {
56 56
                 $this->decode();
57 57
             },
58
-            ActiveRecord::EVENT_AFTER_UPDATE => function () {
58
+            ActiveRecord::EVENT_AFTER_UPDATE => function() {
59 59
                 $this->decode();
60 60
             },
61
-            ActiveRecord::EVENT_BEFORE_VALIDATE => function () {
61
+            ActiveRecord::EVENT_BEFORE_VALIDATE => function() {
62 62
                 if ($this->encodeBeforeValidation) {
63 63
                     $this->encodeValidate();
64 64
                 }
65 65
             },
66
-            ActiveRecord::EVENT_AFTER_VALIDATE => function () {
66
+            ActiveRecord::EVENT_AFTER_VALIDATE => function() {
67 67
                 if ($this->encodeBeforeValidation) {
68 68
                     $this->decode();
69 69
                 }
Please login to merge, or discard this patch.
src/admin/views/item/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
                         'attribute' => 'description',
82 82
                         'label' => Yii::t('yuncms', 'Role Description'),
83 83
                     ],
84
-                    ['class' => 'yuncms\grid\ActionColumn',],
84
+                    ['class' => 'yuncms\grid\ActionColumn', ],
85 85
                 ],
86 86
             ])
87 87
             ?>
Please login to merge, or discard this patch.
src/admin/views/admin/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                     'email:email',
55 55
                     [
56 56
                         'attribute' => 'status',
57
-                        'value' => function ($model) {
57
+                        'value' => function($model) {
58 58
                             return $model->status == Admin::STATUS_ACTIVE ? Yii::t('yuncms', 'Active') : Yii::t('yuncms', 'Disable');
59 59
                         },
60 60
                         'label' => Yii::t('yuncms', 'Status'),
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                         'class' => 'yuncms\grid\ActionColumn',
67 67
                         'header' => Yii::t('yuncms', 'Operation'),
68 68
                         'template' => '{assignment} {view} {update} {delete}',
69
-                        'buttons' => ['assignment' => function ($url, $model, $key) {
69
+                        'buttons' => ['assignment' => function($url, $model, $key) {
70 70
                             return Html::a('<span class="glyphicon glyphicon-dashboard"></span>',
71 71
                                 Url::toRoute(['assignment/view', 'id' => $model->id]), [
72 72
                                     'title' => Yii::t('yuncms', 'Assignment'),
Please login to merge, or discard this patch.
src/user/migrations/m180223_102734Create_user_table.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
             'unconfirmed_email' => $this->string(150)->comment('Unconfirmed Email'),
31 31
             'unconfirmed_mobile' => $this->string(11)->comment('Unconfirmed Mobile'),
32 32
             'registration_ip' => $this->string()->comment('Registration Ip'),
33
-            'identified' => $this->boolean()->defaultValue(false)->comment('Identified'),//是否经过实名认证
34
-            'available_balance' => $this->decimal(12, 2)->defaultValue('0.00'),//可用余额
35
-            'withdrawable_balance' => $this->decimal(12, 2)->defaultValue('0.00'),//可提现余额
33
+            'identified' => $this->boolean()->defaultValue(false)->comment('Identified'), //是否经过实名认证
34
+            'available_balance' => $this->decimal(12, 2)->defaultValue('0.00'), //可用余额
35
+            'withdrawable_balance' => $this->decimal(12, 2)->defaultValue('0.00'), //可提现余额
36 36
             'flags' => $this->integer()->defaultValue(0)->comment('Flags'),
37 37
             'email_confirmed_at' => $this->unixTimestamp()->comment('Email Confirmed At'),
38 38
             'mobile_confirmed_at' => $this->unixTimestamp()->comment('Mobile Confirmed At'),
Please login to merge, or discard this patch.