@@ -36,7 +36,7 @@ |
||
| 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 | }]); |
@@ -57,7 +57,7 @@ |
||
| 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 ?>', |