Completed
Push — master ( 68b0cd...68bcf1 )
by Vladimir
02:30
created
src/widgets/views/languages.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,9 +29,12 @@
 block discarded – undo
29 29
             aria-expanded="true">
30 30
         <?php if (!empty($currentLangLabel)): ?>
31 31
             <?= $currentLangLabel ?>
32
-        <?php else: ?>
32
+        <?php else {
33
+    : ?>
33 34
             <?= EmailTemplatesModule::t('Language') ?>
34
-        <?php endif; ?>
35
+        <?php endif;
36
+}
37
+?>
35 38
         <span class="caret"></span>
36 39
     </button>
37 40
     <ul class="dropdown-menu" aria-labelledby="email-template-languages">
Please login to merge, or discard this patch.
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/services/DbService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
         $this->_template = $this->getModel();
150 150
         $this->_translation = $this->getTranslationModel();
151 151
 
152
-        if ($this->processData($data))  {
152
+        if ($this->processData($data)) {
153 153
             $transaction = $this->db->beginTransaction();
154 154
             try {
155 155
                 $isSaved = $this->_template->insert(false);
Please login to merge, or discard this patch.