Passed
Pull Request — master (#25)
by Geoffry Van
05:25
created
src/views/default/update.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,9 +45,12 @@
 block discarded – undo
45 45
                 <?php if (class_exists(ImperaviRedactor::class)): ?>
46 46
                     <?= $form->field($translation, 'body')
47 47
                         ->widget(ImperaviRedactor::class) ?>
48
-                <?php else: ?>
48
+                <?php else {
49
+    : ?>
49 50
                     <?= $form->field($translation, 'body')->textarea() ?>
50
-                <?php endif; ?>
51
+                <?php endif;
52
+}
53
+?>
51 54
                 <?= $form->field($translation, 'hint')
52 55
                     ->textInput(['disabled' => true]) ?>
53 56
             <?php endforeach ?>
Please login to merge, or discard this patch.
src/views/default/create.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,9 +45,12 @@
 block discarded – undo
45 45
             <?php if (class_exists(ImperaviRedactor::class)): ?>
46 46
                 <?= $form->field($translation, 'body')
47 47
                     ->widget(ImperaviRedactor::class) ?>
48
-            <?php else: ?>
48
+            <?php else {
49
+    : ?>
49 50
                 <?= $form->field($translation, 'body')->textarea() ?>
50
-            <?php endif; ?>
51
+            <?php endif;
52
+}
53
+?>
51 54
                 <?= $form->field($translation, 'hint') ?>
52 55
             <?php endforeach ?>
53 56
             <?= Html::submitButton(
Please login to merge, or discard this patch.
src/gii/default/email-template.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,8 @@  discard block
 block discarded – undo
66 66
             'hint'          => '<?= $generator->hint ?>',
67 67
         ]);
68 68
             <?php endforeach; ?>
69
-            <?php else: ?>
69
+            <?php else {
70
+    : ?>
70 71
             $this->insert($this->translationTableName, [
71 72
             'templateId'    => $templateId,
72 73
             'language'      => Yii::$app->language,
@@ -74,7 +75,9 @@  discard block
 block discarded – undo
74 75
             'body'          => '<?= $generator->body ?>',
75 76
             'hint'          => '<?= $generator->hint ?>',
76 77
         ]);
77
-            <?php endif; ?>
78
+            <?php endif;
79
+}
80
+?>
78 81
 }
79 82
     /**
80 83
      * {@inheritdoc}
Please login to merge, or discard this patch.