Test Setup Failed
Push — master ( b15a9f...c4738f )
by Xu
36:37
created
migrations/m180507_094747_create_volumes_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@
 block discarded – undo
31 31
             'url' => $this->string()->comment('Url'),
32 32
             'pub' => $this->boolean()->defaultValue(false),
33 33
             'status' => $this->boolean()->defaultValue(false)->comment('Status'),
34
-            'created_at' => $this->unixTimestamp()->comment('Created At'),//创建时间
35
-            'updated_at' => $this->unixTimestamp()->comment('Updated At'),//更新时间
34
+            'created_at' => $this->unixTimestamp()->comment('Created At'), //创建时间
35
+            'updated_at' => $this->unixTimestamp()->comment('Updated At'), //更新时间
36 36
         ], $tableOptions);
37 37
     }
38 38
 
Please login to merge, or discard this patch.
src/admin/controllers/VolumeController.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -149,13 +149,13 @@
 block discarded – undo
149 149
     }
150 150
 
151 151
     /**
152
-      * Batch Delete existing Volume model.
153
-      * If deletion is successful, the browser will be redirected to the 'index' page.
154
-      * @return mixed
155
-      * @throws NotFoundHttpException
156
-      * @throws \Throwable
157
-      * @throws \yii\db\StaleObjectException
158
-      */
152
+     * Batch Delete existing Volume model.
153
+     * If deletion is successful, the browser will be redirected to the 'index' page.
154
+     * @return mixed
155
+     * @throws NotFoundHttpException
156
+     * @throws \Throwable
157
+     * @throws \yii\db\StaleObjectException
158
+     */
159 159
     public function actionBatchDelete()
160 160
     {
161 161
         if (($ids = Yii::$app->request->post('ids', null)) != null) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
         if (($model = Volume::findOne($id)) !== null) {
183 183
             return $model;
184 184
         } else {
185
-            throw new NotFoundHttpException (Yii::t('yii', 'The requested page does not exist.'));
185
+            throw new NotFoundHttpException(Yii::t('yii', 'The requested page does not exist.'));
186 186
         }
187 187
     }
188 188
 }
Please login to merge, or discard this patch.
src/admin/views/volume/view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
                     'pub:boolean',
70 70
                     [
71 71
                         'attribute' => 'status',
72
-                        'value' => function ($model) {
72
+                        'value' => function($model) {
73 73
                             return $model->status == \yuncms\models\Volume::STATUS_ACTIVE ? Yii::t('yuncms', 'Active') : Yii::t('yuncms', 'Disable');
74 74
                         },
75 75
                         'label' => Yii::t('yuncms', 'Status'),
Please login to merge, or discard this patch.
src/admin/views/volume/configuration.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
                 </div>
39 39
             </div>
40 40
 
41
-            <?php $form = ActiveForm::begin(['layout' => 'horizontal', 'enableAjaxValidation' => true, 'enableClientValidation' => false,]); ?>
41
+            <?php $form = ActiveForm::begin(['layout' => 'horizontal', 'enableAjaxValidation' => true, 'enableClientValidation' => false, ]); ?>
42 42
             <?= $form->field($model, 'identity')->hiddenInput()->label(false) ?>
43 43
             <?= $form->field($model, 'name')->hiddenInput()->label(false) ?>
44 44
             <?= $form->field($model, 'class')->hiddenInput()->label(false) ?>
Please login to merge, or discard this patch.
src/admin/views/volume/_form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 /* @var yuncms\models\Volume $model */
9 9
 /* @var ActiveForm $form */
10 10
 ?>
11
-<?php $form = ActiveForm::begin(['layout' => 'horizontal', 'enableAjaxValidation' => true, 'enableClientValidation' => false,]); ?>
11
+<?php $form = ActiveForm::begin(['layout' => 'horizontal', 'enableAjaxValidation' => true, 'enableClientValidation' => false, ]); ?>
12 12
 
13 13
 <?= $form->field($model, 'identity')->textInput(['maxlength' => true]) ?>
14 14
 <div class="hr-line-dashed"></div>
Please login to merge, or discard this patch.
src/admin/views/volume/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                     'pub:boolean',
73 73
                     [
74 74
                         'attribute' => 'status',
75
-                        'value' => function ($model) {
75
+                        'value' => function($model) {
76 76
                             return $model->status == Volume::STATUS_ACTIVE ? Yii::t('yuncms', 'Active') : Yii::t('yuncms', 'Disable');
77 77
                         },
78 78
                         'label' => Yii::t('yuncms', 'Status'),
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                     [
99 99
                         'class' => 'yuncms\grid\ActionColumn',
100 100
                         'template' => '{configuration} {view} {update} {delete}',
101
-                        'buttons' => ['configuration' => function ($url, $model, $key) {
101
+                        'buttons' => ['configuration' => function($url, $model, $key) {
102 102
                             return Html::a('<span class="glyphicon glyphicon-cog"></span>',
103 103
                                 Url::toRoute(['configuration', 'id' => $model->id]), [
104 104
                                     'title' => Yii::t('yuncms', 'Configuration'),
Please login to merge, or discard this patch.
src/filesystem/Cache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     {
71 71
         $contents = $this->getForStorage();
72 72
 
73
-        if (! is_null($this->expire)) {
73
+        if (!is_null($this->expire)) {
74 74
             $this->cache->set($this->key, $contents, $this->expire);
75 75
         } else {
76 76
             $this->cache->set($this->key, $contents);
Please login to merge, or discard this patch.
src/filesystem/adapters/SftpFilesystemAdapter.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -90,16 +90,16 @@
 block discarded – undo
90 90
         $config = [];
91 91
 
92 92
         foreach ([
93
-                     'host',
94
-                     'port',
95
-                     'username',
96
-                     'password',
97
-                     'timeout',
98
-                     'root',
99
-                     'privateKey',
100
-                     'permPrivate',
101
-                     'permPublic',
102
-                 ] as $name) {
93
+                        'host',
94
+                        'port',
95
+                        'username',
96
+                        'password',
97
+                        'timeout',
98
+                        'root',
99
+                        'privateKey',
100
+                        'permPrivate',
101
+                        'permPublic',
102
+                    ] as $name) {
103 103
             if ($this->$name !== null) {
104 104
                 $config[$name] = $this->$name;
105 105
             }
Please login to merge, or discard this patch.
src/filesystem/adapters/FtpFilesystemAdapter.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -89,18 +89,18 @@
 block discarded – undo
89 89
     {
90 90
         $config = [];
91 91
         foreach ([
92
-                     'host',
93
-                     'port',
94
-                     'username',
95
-                     'password',
96
-                     'ssl',
97
-                     'timeout',
98
-                     'root',
99
-                     'permPrivate',
100
-                     'permPublic',
101
-                     'passive',
102
-                     'transferMode',
103
-                 ] as $name) {
92
+                        'host',
93
+                        'port',
94
+                        'username',
95
+                        'password',
96
+                        'ssl',
97
+                        'timeout',
98
+                        'root',
99
+                        'permPrivate',
100
+                        'permPublic',
101
+                        'passive',
102
+                        'transferMode',
103
+                    ] as $name) {
104 104
             if ($this->$name !== null) {
105 105
                 $config[$name] = $this->$name;
106 106
             }
Please login to merge, or discard this patch.