Test Setup Failed
Push — master ( a3bc06...787b66 )
by Xu
40:30
created
src/console/views/migrate/_createTable.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,9 +11,11 @@
 block discarded – undo
11 11
 <?php foreach ($fields as $field):
12 12
     if (empty($field['decorators'])): ?>
13 13
             '<?= $field['property'] ?>',
14
-<?php else: ?>
14
+<?php else {
15
+    : ?>
15 16
             <?= "'{$field['property']}' => \$this->{$field['decorators']}" ?>,
16 17
 <?php endif;
18
+}
17 19
 endforeach; ?>
18 20
         ], $tableOptions);
19 21
 <?= $this->render('_addForeignKeys', [
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' => 'yii\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/admin/controllers/AdminController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
         if (($model = Admin::findOne($id)) !== null) {
124 124
             return $model;
125 125
         } else {
126
-            throw new NotFoundHttpException (Yii::t('yuncms', 'The requested page does not exist.'));
126
+            throw new NotFoundHttpException(Yii::t('yuncms', 'The requested page does not exist.'));
127 127
         }
128 128
     }
129 129
 }
Please login to merge, or discard this patch.
src/widgets/BootstrapTypeAhead.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,8 @@
 block discarded – undo
72 72
 
73 73
         $options = $this->clientOptions !== false && !empty($this->clientOptions) ? Json::encode($this->clientOptions) : 'null';
74 74
 
75
-        foreach($this->dataSets as $dataSet) {
76
-            if(empty($dataSet)) {
75
+        foreach ($this->dataSets as $dataSet) {
76
+            if (empty($dataSet)) {
77 77
                 continue;
78 78
             }
79 79
             $dataSets[] = Json::encode($dataSet);
Please login to merge, or discard this patch.
src/helpers/RBACHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@
 block discarded – undo
230 230
             }
231 231
             return implode(' ', $result);
232 232
         }
233
-        return preg_replace_callback('/\\{([\w\-\/]+)\\}/', function ($matches) use ($user) {
233
+        return preg_replace_callback('/\\{([\w\-\/]+)\\}/', function($matches) use ($user) {
234 234
             return static::checkRoute($matches[1], [], $user) ? "{{$matches[1]}}" : '';
235 235
         }, $buttons);
236 236
     }
Please login to merge, or discard this patch.
src/admin/views/menu/index.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
                     [
55 55
                         'attribute' => 'icon',
56 56
                         'value' => function($model) {
57
-                           return Html::icon($model->icon);
57
+                            return Html::icon($model->icon);
58 58
                         },
59 59
                         'format' => 'raw'
60 60
                     ],
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
                         'class' => 'yii\grid\ActionColumn',
67 67
                         'header' => Yii::t('yuncms', 'Operation'),
68 68
                         'template' => '{add} {view} {update} {delete}',
69
-                        'buttons' => ['add' => function ($url, $model, $key) {
69
+                        'buttons' => ['add' => function($url, $model, $key) {
70 70
                             return Html::a('<span class="fa fa-plus"></span>',
71 71
                                 Url::toRoute(['/admin/menu/create', 'parent' => $model->id]), [
72 72
                                     'title' => Yii::t('yuncms', 'Add subMenu'),
Please login to merge, or discard this patch.
src/admin/views/setting/settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
             <?php Box::begin([
22 22
                 'header' => Html::encode($this->title),
23 23
             ]); ?>
24
-            <?php $form = ActiveForm::begin(['layout' => 'horizontal',]); ?>
24
+            <?php $form = ActiveForm::begin(['layout' => 'horizontal', ]); ?>
25 25
 
26 26
             <?= $form->field($model, 'baseUrl') ?>
27 27
             <div class="hr-line-dashed"></div>
Please login to merge, or discard this patch.
src/admin/views/item/_form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 unset($rules[RouteRule::RULE_NAME]);
16 16
 ?>
17 17
 
18
-<?php $form = ActiveForm::begin(['layout' => 'horizontal',]); ?>
18
+<?php $form = ActiveForm::begin(['layout' => 'horizontal', ]); ?>
19 19
 <?= $form->field($model, 'name')->textInput(['maxlength' => 64]) ?>
20 20
 <div class="hr-line-dashed"></div>
21 21
 <?= $form->field($model, 'description')->textarea(['rows' => 2]) ?>
Please login to merge, or discard this patch.
src/admin/models/AdminMenu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
                 'range' => static::find()->select(['name'])->column(),
64 64
                 'message' => 'Menu "{value}" not found.'],
65 65
             [['parent', 'route', 'icon', 'data', 'sort'], 'default'],
66
-            [['parent'], 'filterParent', 'when' => function () {
66
+            [['parent'], 'filterParent', 'when' => function() {
67 67
                 return !$this->isNewRecord;
68 68
             }],
69 69
             [['sort'], 'integer'],
Please login to merge, or discard this patch.