@@ -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 | }]); |
@@ -149,7 +149,7 @@ |
||
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); |