Passed
Pull Request — master (#25)
by Geoffry Van
05:25
created
src/gii/default/email-template.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@
 block discarded – undo
54 54
             ->scalar();
55 55
         
56 56
         <?php 
57
-           $module = Yii::$app->getModule('email-templates');
58
-           ?>
57
+            $module = Yii::$app->getModule('email-templates');
58
+            ?>
59 59
             <?php if ($module): ?>
60 60
             <?php foreach(\motion\i18n\helpers\LanguageHelper::getInstance()->getLocales() as $language): ?>
61 61
             $this->insert($this->translationTableName, [
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
            $module = Yii::$app->getModule('email-templates');
58 58
            ?>
59 59
             <?php if ($module): ?>
60
-            <?php foreach(\motion\i18n\helpers\LanguageHelper::getInstance()->getLocales() as $language): ?>
60
+            <?php foreach (\motion\i18n\helpers\LanguageHelper::getInstance()->getLocales() as $language): ?>
61 61
             $this->insert($this->translationTableName, [
62 62
             'templateId'    => $templateId,
63 63
             'language'      => '<?= $language ?>',
Please login to merge, or discard this 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.