Test Failed
Branch master (73072d)
by graychen
04:17
created
src/models/App.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
177 177
 
178 178
     public function getNum($id)
179 179
     {
180
-         return AppLog::find()->where(['app_id'=>$id])->count();
180
+            return AppLog::find()->where(['app_id'=>$id])->count();
181 181
     }
182 182
 }
183 183
 
Please login to merge, or discard this patch.
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.
src/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 namespace graychen\yii2\basic\auth;
3 3
 
4 4
 use yii;
5
-<?php
5
+< ?php
6 6
 namespace graychen\yii2\queue\backend;
7 7
 use yii;
8 8
 use yii\base\Module as BaseModule;
Please login to merge, or discard this patch.