@@ -64,8 +64,9 @@ discard block |
||
64 | 64 | ->andFilterWhere(['taxonomy_terms.term' => $name]); |
65 | 65 | |
66 | 66 | $result = []; |
67 | - foreach($query->all() as $v) |
|
68 | - $result[] = $v['term']; |
|
67 | + foreach($query->all() as $v) { |
|
68 | + $result[] = $v['term']; |
|
69 | + } |
|
69 | 70 | return $result; |
70 | 71 | } |
71 | 72 | |
@@ -110,8 +111,9 @@ discard block |
||
110 | 111 | } |
111 | 112 | |
112 | 113 | public function canInstall() { |
113 | - if(!$this->getTable()) |
|
114 | - return 'Missing "table" property'; |
|
114 | + if(!$this->getTable()) { |
|
115 | + return 'Missing "table" property'; |
|
116 | + } |
|
115 | 117 | return true; |
116 | 118 | } |
117 | 119 | |
@@ -131,10 +133,12 @@ discard block |
||
131 | 133 | |
132 | 134 | public function getRefTableName() |
133 | 135 | { |
134 | - if(strpos($this->refTable, '\\') === FALSE) //not an AR class but a table name |
|
136 | + if(strpos($this->refTable, '\\') === FALSE) { |
|
137 | + //not an AR class but a table name |
|
135 | 138 | return $this->refTable; |
136 | - else |
|
137 | - return call_user_func([$this->refTable, 'tableName']); |
|
139 | + } else { |
|
140 | + return call_user_func([$this->refTable, 'tableName']); |
|
141 | + } |
|
138 | 142 | } |
139 | 143 | |
140 | 144 | public function getTable() |