Test Setup Failed
Push — master ( 380045...c38148 )
by Александр
38:31
created
src/cmsWidgets/gridView/GridViewCmsWidget.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
         //Если автоопределение колонок не включено
122 122
         if (!$this->isEnabledAutoColumns) {
123
-            return (array) ArrayHelper::getValue($this->grid, 'columns', []);
123
+            return (array)ArrayHelper::getValue($this->grid, 'columns', []);
124 124
         }
125 125
 
126 126
         if ($columns = ArrayHelper::getValue($this->grid, 'columns')) {
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             }
143 143
         }
144 144
 
145
-        $columns = ArrayHelper::merge((array) $autoColumns, (array)$columns);
145
+        $columns = ArrayHelper::merge((array)$autoColumns, (array)$columns);
146 146
 
147 147
         //Есть логика включенных выключенных колонок
148 148
         if ($this->defaultEnabledColumns) {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      */
188 188
     public function getGridConfig()
189 189
     {
190
-        $gridConfig = (array) $this->grid;
190
+        $gridConfig = (array)$this->grid;
191 191
         ArrayHelper::remove($this->grid, 'class');
192 192
 
193 193
         //print_r($this->columns);die;
Please login to merge, or discard this patch.
src/views/admin-component-settings/index.php 1 patch
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,10 +23,11 @@  discard block
 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 28
         <small><?= \Yii::t('skeeks/cms', 'These settings not yet saved in the database') ?></small>
29 29
     <?php endif;
30
+}
30 31
     ?>
31 32
 </div>
32 33
 
@@ -45,9 +46,12 @@  discard block
 block discarded – undo
45 46
     ]))->render(); ?>
46 47
 <? elseif ($formContent = $component->renderConfigForm($form)) : ?>
47 48
     <?= $formContent; ?>
48
-<? else : ?>
49
+<? else {
50
+    : ?>
49 51
     Нет редактируемых настроек для данного компонента
50
-<? endif; ?>
52
+<? endif;
53
+}
54
+?>
51 55
 
52 56
 <?= $form->buttonsStandart($component); ?>
53 57
 <?= $form->errorSummary(\yii\helpers\ArrayHelper::merge(
Please login to merge, or discard this patch.