Test Setup Failed
Pull Request — master (#84)
by
unknown
36:31 queued 27s
created
src/views/admin-cms-content-element/_form.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
         <div class="row">
32 32
             <div class="col-md-12">
33 33
                 <div class="pull-left">
34
-                    <a href='<?=$treeModel->url;?>' target='_blank'><?=$treeModel->name;?></a>
34
+                    <a href='<?=$treeModel->url; ?>' target='_blank'><?=$treeModel->name; ?></a>
35 35
                     /
36
-                    <a href='<?=$model->url;?>' target='_blank'><?=$model->name;?></a>
36
+                    <a href='<?=$model->url; ?>' target='_blank'><?=$model->name; ?></a>
37 37
                 </div>
38 38
 
39 39
             </div>
Please login to merge, or discard this patch.
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@  discard block
 block discarded – undo
23 23
     if ($parent_content_element_id = \Yii::$app->request->get("parent_content_element_id")) {
24 24
         $model->parent_content_element_id = $parent_content_element_id;
25 25
     }
26
-}
27
-else {
26
+} else {
28 27
     $treeModel = \skeeks\cms\models\Tree::findOne($model->tree_id); ?>
29 28
 
30 29
     <div class="sx-box sx-p-10 sx-bg-primary" style="margin-bottom: 10px;">
@@ -93,9 +92,10 @@  discard block
 block discarded – undo
93 92
             <?php $model->content_id = $content_id; ?>
94 93
             <?= $form->field($model, 'content_id')->hiddenInput(['value' => $content_id])->label(false); ?>
95 94
         <?php endif; ?>
96
-    <?php else
95
+    <?php else {
97 96
         : ?>
98 97
         <?php $contentModel = $model->cmsContent;
98
+}
99 99
         ?>
100 100
     <?php endif; ?>
101 101
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                     ],
182 182
                 'body' => \Yii::t('skeeks/cms', 'Management will be available after saving')
183 183
             ]); ?>
184
-        <?php else
184
+        <?php else {
185 185
             : ?>
186 186
             <?= \skeeks\cms\modules\admin\widgets\RelatedModelsGrid::widget([
187 187
                 'label' => $childContent->name,
@@ -204,6 +204,7 @@  discard block
 block discarded – undo
204 204
                     'columns' => (array)\skeeks\cms\controllers\AdminCmsContentElementController::getColumns($childContent)
205 205
                 ],
206 206
             ]);
207
+}
207 208
             ?>
208 209
 
209 210
         <?php endif; ?>
Please login to merge, or discard this patch.
src/models/Tree.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -320,7 +320,7 @@
 block discarded – undo
320 320
             [['name_hidden'], 'string'],
321 321
             [['priority', 'tree_type_id', 'redirect_tree_id', 'redirect_code'], 'integer'],
322 322
             [['code'], 'string', 'max' => 64],
323
-            [['name','name_full'], 'string', 'max' => 255],
323
+            [['name', 'name_full'], 'string', 'max' => 255],
324 324
             [['meta_title', 'meta_description', 'meta_keywords'], 'string'],
325 325
             [['meta_title'], 'string', 'max' => 500],
326 326
             [['cms_site_id'], 'integer'],
Please login to merge, or discard this patch.