@@ -121,15 +121,15 @@ discard block |
||
121 | 121 | $this->initDataProvider(); |
122 | 122 | |
123 | 123 | if ($this->createdBy) { |
124 | - $this->dataProvider->query->andWhere([$className::tableName().'.created_by' => $this->createdBy]); |
|
124 | + $this->dataProvider->query->andWhere([$className::tableName() . '.created_by' => $this->createdBy]); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | if ($this->active) { |
128 | - $this->dataProvider->query->andWhere([$className::tableName().'.active' => $this->active]); |
|
128 | + $this->dataProvider->query->andWhere([$className::tableName() . '.active' => $this->active]); |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | if ($this->content_ids) { |
132 | - $this->dataProvider->query->andWhere([$className::tableName().'.content_id' => $this->content_ids]); |
|
132 | + $this->dataProvider->query->andWhere([$className::tableName() . '.content_id' => $this->content_ids]); |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | if ($this->limit) { |
@@ -178,12 +178,12 @@ discard block |
||
178 | 178 | $query->andWhere( |
179 | 179 | [ |
180 | 180 | 'or', |
181 | - [$className::tableName().'.tree_id' => $treeIds], |
|
182 | - [CmsContentElementTree::tableName().'.tree_id' => $treeIds], |
|
181 | + [$className::tableName() . '.tree_id' => $treeIds], |
|
182 | + [CmsContentElementTree::tableName() . '.tree_id' => $treeIds], |
|
183 | 183 | ] |
184 | 184 | ); |
185 | 185 | } else { |
186 | - $query->andWhere([$className::tableName().'.tree_id' => $treeIds]); |
|
186 | + $query->andWhere([$className::tableName() . '.tree_id' => $treeIds]); |
|
187 | 187 | } |
188 | 188 | |
189 | 189 | } |
@@ -193,14 +193,14 @@ discard block |
||
193 | 193 | |
194 | 194 | if ($this->enabledActiveTime == Cms::BOOL_Y) { |
195 | 195 | $this->dataProvider->query->andWhere( |
196 | - ["<=", $className::tableName().'.published_at', \Yii::$app->formatter->asTimestamp(time())] |
|
196 | + ["<=", $className::tableName() . '.published_at', \Yii::$app->formatter->asTimestamp(time())] |
|
197 | 197 | ); |
198 | 198 | |
199 | 199 | $this->dataProvider->query->andWhere( |
200 | 200 | [ |
201 | 201 | 'or', |
202 | - [">=", $className::tableName().'.published_to', \Yii::$app->formatter->asTimestamp(time())], |
|
203 | - [CmsContentElement::tableName().'.published_to' => null], |
|
202 | + [">=", $className::tableName() . '.published_to', \Yii::$app->formatter->asTimestamp(time())], |
|
203 | + [CmsContentElement::tableName() . '.published_to' => null], |
|
204 | 204 | ] |
205 | 205 | ); |
206 | 206 | } |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | $this->dataProvider->query->with($this->with); |
213 | 213 | } |
214 | 214 | |
215 | - $this->dataProvider->query->groupBy([$className::tableName().'.id']); |
|
215 | + $this->dataProvider->query->groupBy([$className::tableName() . '.id']); |
|
216 | 216 | |
217 | 217 | if ($this->activeQueryCallback && is_callable($this->activeQueryCallback)) { |
218 | 218 | $callback = $this->activeQueryCallback; |
@@ -516,12 +516,12 @@ discard block |
||
516 | 516 | } |
517 | 517 | protected function _run() |
518 | 518 | { |
519 | - $cacheKey = $this->getCacheKey().'run'; |
|
519 | + $cacheKey = $this->getCacheKey() . 'run'; |
|
520 | 520 | |
521 | 521 | $dependency = new TagDependency([ |
522 | 522 | 'tags' => |
523 | 523 | [ |
524 | - $this->className().(string)$this->namespace, |
|
524 | + $this->className() . (string)$this->namespace, |
|
525 | 525 | (new CmsContentElement())->getTableCacheTag(), |
526 | 526 | ], |
527 | 527 | ]); |
@@ -135,7 +135,7 @@ |
||
135 | 135 | if (is_array($model) || is_object($model)) { |
136 | 136 | foreach ($model as $name => $value) { |
137 | 137 | if ($value === null || is_scalar($value) || is_callable([$value, '__toString'])) { |
138 | - $this->_autoColumns[] = (string) $name; |
|
138 | + $this->_autoColumns[] = (string)$name; |
|
139 | 139 | } |
140 | 140 | } |
141 | 141 | } |