Completed
Pull Request — master (#25)
by Geoffry Van
05:55 queued 02:44
created
src/queries/EmailTemplateQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function withTranslation($language)
38 38
     {
39
-        return $this->with(['translations' => function ($query) use ($language) {
39
+        return $this->with(['translations' => function($query) use ($language) {
40 40
             /* @var ActiveQuery $query */
41 41
             $query->andWhere(['language' => $language]);
42 42
         }]);
Please login to merge, or discard this patch.
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 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 if ($module->languageProvider): ?>
61 61
             <?php foreach($module->languageProvider['languages'] as $language): ?>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
            ?>
59 59
             <?php if ($module): ?>
60 60
             <?php if ($module->languageProvider): ?>
61
-            <?php foreach($module->languageProvider['languages'] as $language): ?>
61
+            <?php foreach ($module->languageProvider['languages'] as $language): ?>
62 62
             $this->insert($this->translationTableName, [
63 63
             'templateId'    => $templateId,
64 64
             'language'      => '<?= $language['locale'] ?>',
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,8 @@  discard block
 block discarded – undo
68 68
         ]);
69 69
             <?php endforeach; ?>
70 70
             <?php endif; ?>
71
-            <?php else: ?>
71
+            <?php else {
72
+    : ?>
72 73
             $this->insert($this->translationTableName, [
73 74
             'templateId'    => $templateId,
74 75
             'language'      => Yii::$app->language,
@@ -76,7 +77,9 @@  discard block
 block discarded – undo
76 77
             'body'          => '<?= $generator->body ?>',
77 78
             'hint'          => '<?= $generator->hint ?>',
78 79
         ]);
79
-            <?php endif; ?>
80
+            <?php endif;
81
+}
82
+?>
80 83
 }
81 84
     /**
82 85
      * {@inheritdoc}
Please login to merge, or discard this patch.