Test Setup Failed
Push — master ( 0aea3f...fa0f31 )
by Tõnis
01:04
created
myTemplates/crud/default/controller.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,9 +33,12 @@  discard block
 block discarded – undo
33 33
 use <?= ltrim($generator->modelClass, '\\') ?>;
34 34
 <?php if (!empty($generator->searchModelClass)): ?>
35 35
 use <?= ltrim($generator->searchModelClass, '\\') . (isset($searchModelAlias) ? " as $searchModelAlias" : "") ?>;
36
-<?php else : ?>
36
+<?php else {
37
+    : ?>
37 38
 use yii\data\ActiveDataProvider;
38
-<?php endif; ?>
39
+<?php endif;
40
+}
41
+?>
39 42
 use <?= ltrim($generator->baseControllerClass, '\\') ?>;
40 43
 use yii\web\NotFoundHttpException;
41 44
 use yii\web\ForbiddenHttpException;
@@ -97,7 +100,8 @@  discard block
 block discarded – undo
97 100
             'searchModel' => $searchModel,
98 101
             'dataProvider' => $dataProvider,
99 102
         ]);
100
-<?php else : ?>
103
+<?php else {
104
+    : ?>
101 105
         $dataProvider = new ActiveDataProvider([
102 106
             'query' => <?= $modelClass ?>::find(),
103 107
         ]);
@@ -105,7 +109,9 @@  discard block
 block discarded – undo
105 109
         return $this->render('index', [
106 110
             'dataProvider' => $dataProvider,
107 111
         ]);
108
-<?php endif; ?>
112
+<?php endif;
113
+}
114
+?>
109 115
     }
110 116
 
111 117
     /**
Please login to merge, or discard this patch.