Test Setup Failed
Branch master (d2d35e)
by Александр
01:37
created
src/views/admin-clear/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
                 'label',
29 29
                 [
30 30
                     'class' => \yii\grid\DataColumn::className(),
31
-                    'value' => function ($data) {
31
+                    'value' => function($data) {
32 32
                         /**
33 33
                          * @var $dir \skeeks\sx\Dir
34 34
                          */
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
                 [
41 41
                     'class' => \yii\grid\DataColumn::className(),
42
-                    'value' => function ($data) {
42
+                    'value' => function($data) {
43 43
                         /**
44 44
                          * @var $dir \skeeks\sx\Dir
45 45
                          */
Please login to merge, or discard this patch.
src/views/admin-component-settings/index.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,9 +23,12 @@
 block discarded – undo
23 23
         </button>
24 24
         <small><?= \Yii::t('skeeks/cms',
25 25
                 'The settings for this component are stored in the database. This option will erase them from the database, but the component, restore the default values. As they have in the code the developer.') ?></small>
26
-    <?php else: ?>
26
+    <?php else {
27
+    : ?>
27 28
         <small><?= \Yii::t('skeeks/cms', 'These settings not yet saved in the database') ?></small>
28
-    <?php endif; ?>
29
+    <?php endif;
30
+}
31
+?>
29 32
 </div>
30 33
 
31 34
 <?php $form = \skeeks\cms\modules\admin\widgets\form\ActiveFormUseTab::begin(); ?>
Please login to merge, or discard this patch.
src/views/admin-component-settings/remove.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,9 +23,12 @@
 block discarded – undo
23 23
                 onclick="sx.ComponentSettings.Remove.removeAll(); return false;">
24 24
             <i class="glyphicon glyphicon-remove"></i> <?= \Yii::t('skeeks/cms', 'reset all settings') ?>
25 25
         </button>
26
-    <?php else: ?>
26
+    <?php else {
27
+    : ?>
27 28
         <small><?= \Yii::t('skeeks/cms', 'The database no settings for this component.') ?></small>
28
-    <?php endif; ?>
29
+    <?php endif;
30
+}
31
+?>
29 32
 </div>
30 33
 
31 34
 
Please login to merge, or discard this patch.
src/views/admin-component-settings/sites.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
         [
51 51
             'class' => \yii\grid\DataColumn::className(),
52
-            'value' => function (\skeeks\cms\models\CmsSite $model, $key, $index) {
52
+            'value' => function(\skeeks\cms\models\CmsSite $model, $key, $index) {
53 53
                 return \yii\helpers\Html::a('<i class="glyphicon glyphicon-cog"></i>',
54 54
                     \skeeks\cms\helpers\UrlHelper::constructCurrent()->setRoute('cms/admin-component-settings/site')->set('site_id',
55 55
                         $model->id)->toString(),
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,12 @@
 block discarded – undo
31 31
             <i class="glyphicon glyphicon-remove"></i> <?= \Yii::t('skeeks/cms', 'reset settings for all sites"') ?>
32 32
         </button>
33 33
         <small>.</small>
34
-    <?php else: ?>
34
+    <?php else {
35
+    : ?>
35 36
         <small><?= \Yii::t('skeeks/cms', 'Neither site does not have personal settings for this component') ?></small>
36
-    <?php endif; ?>
37
+    <?php endif;
38
+}
39
+?>
37 40
 </div>
38 41
 
39 42
 <?
Please login to merge, or discard this patch.
src/views/admin-component-settings/site.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,9 +25,12 @@
 block discarded – undo
25 25
         </button>
26 26
         <small><?= \Yii::t('skeeks/cms',
27 27
                 'The settings for this component are stored in the database. This option will erase them from the database, but the component, restore the default values. As they have in the code the developer.') ?></small>
28
-    <?php else: ?>
28
+    <?php else {
29
+    : ?>
29 30
         <small><?= \Yii::t('skeeks/cms', 'These settings not yet saved in the database') ?></small>
30
-    <?php endif; ?>
31
+    <?php endif;
32
+}
33
+?>
31 34
 </div>
32 35
 
33 36
 
Please login to merge, or discard this patch.
src/views/admin-component-settings/user.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,9 +25,12 @@
 block discarded – undo
25 25
         </button>
26 26
         <small><?= \Yii::t('skeeks/cms',
27 27
                 'The settings for this component are stored in the database. This option will erase them from the database, but the component, restore the default values. As they have in the code the developer.') ?></small>
28
-    <?php else: ?>
28
+    <?php else {
29
+    : ?>
29 30
         <small><?= \Yii::t('skeeks/cms', 'These settings not yet saved in the database') ?></small>
30
-    <?php endif; ?>
31
+    <?php endif;
32
+}
33
+?>
31 34
 </div>
32 35
 
33 36
 <?php $form = \skeeks\cms\modules\admin\widgets\form\ActiveFormUseTab::begin(); ?>
Please login to merge, or discard this patch.
src/views/admin-component-settings/users.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     'columns' => [
47 47
         [
48 48
             'class' => \yii\grid\DataColumn::className(),
49
-            'value' => function (\skeeks\cms\models\User $model, $key, $index) {
49
+            'value' => function(\skeeks\cms\models\User $model, $key, $index) {
50 50
                 return \yii\helpers\Html::a('<i class="glyphicon glyphicon-cog"></i>',
51 51
                     \skeeks\cms\helpers\UrlHelper::constructCurrent()->setRoute('cms/admin-component-settings/user')->set('user_id',
52 52
                         $model->id)->toString(),
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,9 +30,12 @@
 block discarded – undo
30 30
                 onclick="sx.ComponentSettings.Remove.removeUsers(); return false;">
31 31
             <i class="glyphicon glyphicon-remove"></i> <?= \Yii::t('skeeks/cms', 'Reset settings for all users') ?>
32 32
         </button>
33
-    <?php else: ?>
33
+    <?php else {
34
+    : ?>
34 35
         <small><?= \Yii::t('skeeks/cms', 'Neither user does not have personal settings for this component') ?></small>
35
-    <?php endif; ?>
36
+    <?php endif;
37
+}
38
+?>
36 39
 </div>
37 40
 
38 41
 <?
Please login to merge, or discard this patch.
src/views/admin-cms-user-universal-property-enum/_form.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,8 @@  discard block
 block discarded – undo
10 10
 
11 11
 <?php if ($form_id = \Yii::$app->request->get('property_id')) : ?>
12 12
     <?= $form->field($model, 'property_id')->hiddenInput(['value' => $form_id])->label(false); ?>
13
-<?php else: ?>
13
+<?php else {
14
+    : ?>
14 15
     <?= $form->field($model, 'property_id')->widget(
15 16
         \skeeks\widget\chosen\Chosen::className(), [
16 17
         'items' => \yii\helpers\ArrayHelper::map(
@@ -19,6 +20,7 @@  discard block
 block discarded – undo
19 20
             "name"
20 21
         ),
21 22
     ]);
23
+}
22 24
     ?>
23 25
 <?php endif; ?>
24 26
 
Please login to merge, or discard this patch.
src/views/admin-tools/_columns-select-cms-element.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
     [
11 11
         'class' => \yii\grid\DataColumn::className(),
12
-        'value' => function ($model) {
12
+        'value' => function($model) {
13 13
             return \yii\helpers\Html::a('<i class="glyphicon glyphicon-circle-arrow-left"></i> ' . \Yii::t('skeeks/cms',
14 14
                     'Choose'), $model->id, [
15 15
                 'class' => 'btn btn-primary sx-row-action',
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
     [
27 27
         'class' => \yii\grid\DataColumn::className(),
28
-        'value' => function (\skeeks\cms\models\CmsContentElement $model) {
28
+        'value' => function(\skeeks\cms\models\CmsContentElement $model) {
29 29
             return $model->cmsContent->name;
30 30
         },
31 31
         'format' => 'raw',
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     [
54 54
         'class' => \yii\grid\DataColumn::className(),
55
-        'value' => function (\skeeks\cms\models\CmsContentElement $model) {
55
+        'value' => function(\skeeks\cms\models\CmsContentElement $model) {
56 56
             if (!$model->cmsTree) {
57 57
                 return null;
58 58
             }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
     [
80 80
         'class' => \yii\grid\DataColumn::className(),
81
-        'value' => function (\skeeks\cms\models\CmsContentElement $model) {
81
+        'value' => function(\skeeks\cms\models\CmsContentElement $model) {
82 82
             $result = [];
83 83
 
84 84
             if ($model->cmsContentElementTrees) {
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
     [
106 106
         'class' => \yii\grid\DataColumn::className(),
107
-        'value' => function (\skeeks\cms\models\CmsContentElement $model) {
107
+        'value' => function(\skeeks\cms\models\CmsContentElement $model) {
108 108
 
109 109
             return \yii\helpers\Html::a('<i class="glyphicon glyphicon-arrow-right"></i>', $model->absoluteUrl, [
110 110
                 'target' => '_blank',
Please login to merge, or discard this patch.