Test Failed
Pull Request — master (#10)
by zacksleo
20:15
created
src/views/default/app/view.php 1 patch
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.
src/views/default/app/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
             [
27 27
                 'attribute' => 'num',
28 28
                 'format' => 'html',
29
-                'value' => function ($model) {
29
+                'value' => function($model) {
30 30
                     return $model->getNum($model->id);
31 31
                 }
32 32
             ],
@@ -38,7 +38,7 @@  discard block
 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.