Test Failed
Push — master ( 73072d...9ac00f )
by graychen
03:06
created
src/app/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             ['class' => 'yii\grid\ActionColumn',
39 39
             'template' => '{view} {update} {delete} {applog}',
40 40
             'buttons' => [
41
-            'applog' => function ($url, $model, $key) {
41
+            'applog' => function($url, $model, $key) {
42 42
                 $appId = $model->id;
43 43
                 $url = \yii\helpers\Url::to(['app-log/index', 'app_id' => $appId]);
44 44
                 return Html::a("访问日志", $url);
Please login to merge, or discard this patch.
src/app/view.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
             'updated_at:datetime',
38 38
             [
39 39
                 'attribute'=>'status',
40
-                'value'=>function($model){
41
-                    if($model->status==0){
40
+                'value'=>function($model) {
41
+                    if ($model->status == 0) {
42 42
                         return "开发状态";
43
-                    }elseif($model->status==1){
43
+                    }elseif ($model->status == 1) {
44 44
                         return "部署状态";
45 45
                     }
46 46
                 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
                 'value'=>function($model){
41 41
                     if($model->status==0){
42 42
                         return "开发状态";
43
-                    }elseif($model->status==1){
43
+                    } elseif($model->status==1){
44 44
                         return "部署状态";
45 45
                     }
46 46
                 }
Please login to merge, or discard this patch.