@@ -16,8 +16,8 @@ discard block |
||
| 16 | 16 | public function getTerms($object_id, $name = []) |
| 17 | 17 | { |
| 18 | 18 | $query = TaxonomyTerms::find() |
| 19 | - ->select(TaxonomyTerms::tableName() . '.term') |
|
| 20 | - ->innerJoin($this->table, $this->table . '.term_id = taxonomy_terms.id') |
|
| 19 | + ->select(TaxonomyTerms::tableName().'.term') |
|
| 20 | + ->innerJoin($this->table, $this->table.'.term_id = taxonomy_terms.id') |
|
| 21 | 21 | ->andFilterWhere(['taxonomy_terms.term' => $name]); |
| 22 | 22 | |
| 23 | 23 | if ($object_id) { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | { |
| 45 | 45 | $cachedParents = []; |
| 46 | 46 | |
| 47 | - $addTerm = function ($parent, $item) use ($object_id, &$cachedParents) { |
|
| 47 | + $addTerm = function($parent, $item) use ($object_id, &$cachedParents) { |
|
| 48 | 48 | if ($this->detectLoop($parent, $item)) { |
| 49 | 49 | throw new InvalidCallException('Loop detected! Cannot add parent as a child!'); |
| 50 | 50 | } |