@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $elements = Craft::$app->getElements(); |
106 | 106 | $models = []; |
107 | 107 | foreach ($results as $config) { |
108 | - if($config['id'] && $config['siteId']) { |
|
108 | + if ($config['id'] && $config['siteId']) { |
|
109 | 109 | $model = $elements->getElementById($config['id'], $elementClass, $config['siteId']); |
110 | 110 | if ($model) { |
111 | 111 | // The `count` property is added dynamically by our CountBehavior behavior |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | $query->query->limit($this->limit); // or whatever limit is set |
140 | 140 | |
141 | 141 | $query->subQuery->groupBy('elements.id'); |
142 | - if($query->elementType == 'craft\elements\Entry') { |
|
142 | + if ($query->elementType == 'craft\elements\Entry') { |
|
143 | 143 | $query->subQuery->addGroupBy('structureelements.lft'); |
144 | 144 | } |
145 | 145 | $event->isValid = true; |