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
83d953ba
Commit
83d953ba
authored
Dec 20, 2016
by
chadicus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove indentation from Grouping::parse()
parent
70383b14
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
55 deletions
+57
-55
library/Solarium/QueryType/Select/ResponseParser/Component/Grouping.php
...um/QueryType/Select/ResponseParser/Component/Grouping.php
+57
-55
No files found.
library/Solarium/QueryType/Select/ResponseParser/Component/Grouping.php
View file @
83d953ba
...
@@ -61,9 +61,12 @@ class Grouping implements ComponentParserInterface
...
@@ -61,9 +61,12 @@ class Grouping implements ComponentParserInterface
*/
*/
public
function
parse
(
$query
,
$grouping
,
$data
)
public
function
parse
(
$query
,
$grouping
,
$data
)
{
{
if
(
!
isset
(
$data
[
'grouped'
]))
{
return
new
Result
(
array
());
}
$groups
=
array
();
$groups
=
array
();
if
(
isset
(
$data
[
'grouped'
]))
{
// parse field groups
// parse field groups
$valueResultClass
=
$grouping
->
getOption
(
'resultvaluegroupclass'
);
$valueResultClass
=
$grouping
->
getOption
(
'resultvaluegroupclass'
);
$documentClass
=
$query
->
getOption
(
'documentclass'
);
$documentClass
=
$query
->
getOption
(
'documentclass'
);
...
@@ -131,7 +134,6 @@ class Grouping implements ComponentParserInterface
...
@@ -131,7 +134,6 @@ class Grouping implements ComponentParserInterface
$groups
[
$groupQuery
]
=
$group
;
$groups
[
$groupQuery
]
=
$group
;
}
}
}
}
}
return
new
Result
(
$groups
);
return
new
Result
(
$groups
);
}
}
...
...
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