Test Setup Failed
Push — master ( 908d92...e99d3b )
by Александр
39:40
created
src/views/admin-cms-content-element/_form.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         <?= $form->fieldSet(\Yii::t('skeeks/cms', 'Access')); ?>
149 149
         <?= \skeeks\cms\rbac\widgets\adminPermissionForRoles\AdminPermissionForRolesWidget::widget([
150 150
             'permissionName'        => $model->permissionName,
151
-            'permissionDescription' => 'Доступ к этому элементу: '.$model->name,
151
+            'permissionDescription' => 'Доступ к этому элементу: ' . $model->name,
152 152
             'label'                 => 'Доступ к этому элементу',
153 153
         ]); ?>
154 154
         <?= $form->fieldSetEnd() ?>
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
             : ?>
180 180
             <?= \skeeks\cms\modules\admin\widgets\RelatedModelsGrid::widget([
181 181
                 'label'       => $childContent->name,
182
-                'namespace'   => md5($model->className().$childContent->id),
182
+                'namespace'   => md5($model->className() . $childContent->id),
183 183
                 'parentModel' => $model,
184 184
                 'relation'    => [
185 185
                     'content_id'                => $childContent->id,
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,9 +87,10 @@  discard block
 block discarded – undo
87 87
             <?php $model->content_id = $content_id; ?>
88 88
             <?= $form->field($model, 'content_id')->hiddenInput(['value' => $content_id])->label(false); ?>
89 89
         <?php endif; ?>
90
-    <?php else
90
+    <?php else {
91 91
         : ?>
92 92
         <?php $contentModel = $model->cmsContent;
93
+}
93 94
         ?>
94 95
     <?php endif; ?>
95 96
 
@@ -175,7 +176,7 @@  discard block
 block discarded – undo
175 176
                     ],
176 177
                 'body'    => \Yii::t('skeeks/cms', 'Management will be available after saving'),
177 178
             ]); ?>
178
-        <?php else
179
+        <?php else {
179 180
             : ?>
180 181
             <?= \skeeks\cms\modules\admin\widgets\RelatedModelsGrid::widget([
181 182
                 'label'       => $childContent->name,
@@ -198,6 +199,7 @@  discard block
 block discarded – undo
198 199
                     'columns' => (array)\skeeks\cms\controllers\AdminCmsContentElementController::getColumns($childContent),
199 200
                 ],
200 201
             ]);
202
+}
201 203
             ?>
202 204
 
203 205
         <?php endif; ?>
Please login to merge, or discard this patch.