Passed
Push — v1 ( f463c1...1953cf )
by Andrew
11:53 queued 06:33
created
src/services/Similar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.