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