Test Setup Failed
Branch master (d2d35e)
by Александр
01:37
created
src/relatedProperties/models/RelatedPropertyModel.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,12 +142,14 @@
 block discarded – undo
142 142
                 ['code'],
143 143
                 function ($attribute) {
144 144
                     if (!preg_match('/^[a-zA-Z]{1}[a-zA-Z0-9]{1,255}$/',
145
-                        $this->$attribute)) //if(!preg_match('/(^|.*\])([\w\.]+)(\[.*|$)/', $this->$attribute))
145
+                        $this->$attribute)) {
146
+                        //if(!preg_match('/(^|.*\])([\w\.]+)(\[.*|$)/', $this->$attribute))
146 147
                     {
147 148
                         $this->addError($attribute, \Yii::t('skeeks/cms',
148 149
                             'Use only letters of the alphabet in lower or upper case and numbers, the first character of the letter (Example {code})',
149 150
                             ['code' => 'code1']));
150 151
                     }
152
+                    }
151 153
                 }
152 154
             ],
153 155
 
Please login to merge, or discard this patch.
src/cmsWidgets/filters/_form.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,9 +33,12 @@
 block discarded – undo
33 33
 <?php if ($model->cmsContent) : ?>
34 34
     <?= $form->fieldSelectMulti($model, 'realatedProperties',
35 35
         \yii\helpers\ArrayHelper::map($model->cmsContent->cmsContentProperties, 'code', 'name')); ?>
36
-<?php else: ?>
36
+<?php else {
37
+    : ?>
37 38
     Дополнительные свойства появятся после сохранения настроек
38
-<?php endif; ?>
39
+<?php endif;
40
+}
41
+?>
39 42
 
40 43
 
41 44
 
Please login to merge, or discard this patch.
src/cmsWidgets/filters/views/default.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,12 +96,15 @@
 block discarded – undo
96 96
                     </div>
97 97
                 </div>
98 98
 
99
-            <?php else : ?>
99
+            <?php else {
100
+    : ?>
100 101
 
101 102
                 <?php $propertiesValues = \skeeks\cms\models\CmsContentElementProperty::find()->select(['value'])->where([
102 103
                     'property_id' => $property->id,
103 104
                     'element_id' => $widget->elementIds
104
-                ])->all(); ?>
105
+                ])->all();
106
+}
107
+?>
105 108
 
106 109
                 <?php if ($propertiesValues) : ?>
107 110
                     <div class="row">
Please login to merge, or discard this patch.
src/views/admin-user-email/_form.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,8 @@  discard block
 block discarded – undo
11 11
 
12 12
 <?php if (\Yii::$app->request->get('user_id')) : ?>
13 13
     <?= $form->field($model, 'user_id')->hiddenInput(['value' => \Yii::$app->request->get('user_id')])->label(false) ?>
14
-<?php else: ?>
14
+<?php else {
15
+    : ?>
15 16
     <?= $form->fieldSelect($model, 'user_id', \yii\helpers\ArrayHelper::map(
16 17
         \skeeks\cms\models\User::find()->active()->all(),
17 18
         'id',
@@ -19,7 +20,9 @@  discard block
 block discarded – undo
19 20
     ), [
20 21
         'allowDeselect' => true
21 22
     ]) ?>
22
-<?php endif; ?>
23
+<?php endif;
24
+}
25
+?>
23 26
 
24 27
 
25 28
 <?= $form->fieldRadioListBoolean($model, 'approved'); ?>
Please login to merge, or discard this patch.
src/views/admin-info/table.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,8 @@  discard block
 block discarded – undo
11 11
 
12 12
     <p>Empty.</p>
13 13
 
14
-<?php else: ?>
14
+<?php else {
15
+    : ?>
15 16
 
16 17
     <table class="table table-condensed table-bordered table-striped table-hover sx-table" style="table-layout: fixed;">
17 18
         <thead>
@@ -26,7 +27,9 @@  discard block
 block discarded – undo
26 27
                 <th><?= Html::encode($name) ?></th>
27 28
                 <td style="overflow:auto"><?= $value ?></td>
28 29
             </tr>
29
-        <?php endforeach; ?>
30
+        <?php endforeach;
31
+}
32
+?>
30 33
         </tbody>
31 34
     </table>
32 35
 
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 1 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.