Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
82064281
Commit
82064281
authored
Dec 20, 2016
by
chadicus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove yet another level of indentation in Grouping::parse()
parent
83d953ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
28 deletions
+30
-28
library/Solarium/QueryType/Select/ResponseParser/Component/Grouping.php
...um/QueryType/Select/ResponseParser/Component/Grouping.php
+30
-28
No files found.
library/Solarium/QueryType/Select/ResponseParser/Component/Grouping.php
View file @
82064281
...
@@ -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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment