Completed
Pull Request — master (#30)
by Vladimir
03:58
created
src/gii/default/email-template.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
                 'hint',
65 65
             ],
66 66
             [
67
-            <?php foreach(\motion\i18n\helpers\LanguageHelper::getInstance()->getLocales() as $language): ?>    [
67
+            <?php foreach (\motion\i18n\helpers\LanguageHelper::getInstance()->getLocales() as $language): ?>    [
68 68
                     'templateId'    => $templateId,
69 69
                     'language'      => '<?= $language ?>',
70 70
                     'subject'       => '<?= $generator->subject ?>',
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,8 @@  discard block
 block discarded – undo
73 73
                 ],
74 74
             <?php endforeach; ?>]
75 75
         );
76
-<?php else: ?>
76
+<?php else {
77
+    : ?>
77 78
         $this->insert($this->translationTableName, [
78 79
             'templateId'    => $templateId,
79 80
             'language'      => Yii::$app->language,
@@ -81,7 +82,9 @@  discard block
 block discarded – undo
81 82
             'body'          => '<?= $generator->body ?>',
82 83
             'hint'          => '<?= $generator->hint ?>',
83 84
         ]);
84
-<?php endif; ?>
85
+<?php endif;
86
+}
87
+?>
85 88
     }
86 89
 
87 90
     /**
Please login to merge, or discard this patch.