Commit 82064281 authored by chadicus's avatar chadicus

Remove yet another level of indentation in Grouping::parse()

parent 83d953ba
...@@ -73,7 +73,10 @@ class Grouping implements ComponentParserInterface ...@@ -73,7 +73,10 @@ class Grouping implements ComponentParserInterface
// check grouping fields as well as the grouping function (either can be used in the query) // check grouping fields as well as the grouping function (either can be used in the query)
foreach (array_merge($grouping->getFields(), array($grouping->getFunction())) as $field) { foreach (array_merge($grouping->getFields(), array($grouping->getFunction())) as $field) {
if (isset($data['grouped'][$field])) { if (!isset($data['grouped'][$field])) {
continue;
}
$result = $data['grouped'][$field]; $result = $data['grouped'][$field];
$matches = (isset($result['matches'])) ? $result['matches'] : null; $matches = (isset($result['matches'])) ? $result['matches'] : null;
...@@ -106,7 +109,6 @@ class Grouping implements ComponentParserInterface ...@@ -106,7 +109,6 @@ class Grouping implements ComponentParserInterface
$groups[$field] = new FieldGroup($matches, $groupCount, $valueGroups); $groups[$field] = new FieldGroup($matches, $groupCount, $valueGroups);
} }
}
// parse query groups // parse query groups
$groupResultClass = $grouping->getOption('resultquerygroupclass'); $groupResultClass = $grouping->getOption('resultquerygroupclass');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment