Passed
Push — master ( 6f914d...48f229 )
by Tõnis
03:00
created
views/_country-region-row.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,14 +48,17 @@
 block discarded – undo
48 48
                 'value' => !is_null($country) ? (new AddressHelper())->formatList($country->getDivisions()) : [],
49 49
             ],
50 50
         ]);?>
51
-    <?php else:?>
51
+    <?php else {
52
+    :?>
52 53
         <?= $form->field($model, 'state')->widget(Select2::class, [
53 54
             'data'=>  ArrayHelper::map((new AddressHelper())->formatList($country->getDivisions()),'id', 'name'),
54 55
             'options' => [
55 56
                 'id' => $widget->fieldIdPrefix . "-state",
56 57
                 'placeholder' => $widget->placeHolders['state'],
57 58
             ],
58
-        ]);?>
59
+        ]);
60
+}
61
+?>
59 62
     <?php endif;?>
60 63
     </div>
61 64
 </div>
Please login to merge, or discard this patch.