Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global Aggregation #555

Merged
merged 8 commits into from
Feb 18, 2014
Merged

Global Aggregation #555

merged 8 commits into from
Feb 18, 2014

Conversation

krzaczek
Copy link
Contributor

* @return AbstractAggregation
*/
public function addAggregation(AbstractAggregation $aggregation)
{
if(is_a($aggregation, 'Elastica\Aggregation\GlobalAggregation'))
throw new InvalidException('Global aggregators can only be placed as top level aggregators');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please always use { } also for 1 line if clauses.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok no problem .. will fix that

@krzaczek
Copy link
Contributor Author

Done

ruflin added a commit that referenced this pull request Feb 18, 2014
@ruflin ruflin merged commit 42d91ed into ruflin:master Feb 18, 2014
@ruflin
Copy link
Owner

ruflin commented Feb 18, 2014

Merged. Thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants