Skip to content

Commit

Permalink
Apply no_alias_functions CS rule
Browse files Browse the repository at this point in the history
  • Loading branch information
deguif committed Nov 19, 2019
1 parent f361861 commit 5be56e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Elastica/Aggregation/AbstractAggregation.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function toArray(): array
// compensate for class name GlobalAggregation
$array = ['global' => new \stdClass()];
}
if (\sizeof($this->_aggs)) {
if (\count($this->_aggs)) {
$array['aggs'] = $this->_convertArrayable($this->_aggs);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Elastica/ResultSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public function count()
*/
public function countSuggests()
{
return \sizeof($this->getSuggests());
return \count($this->getSuggests());
}

/**
Expand Down

0 comments on commit 5be56e7

Please sign in to comment.