Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
III-2636: Fix coding standard violations
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberwolf committed Jul 6, 2018
1 parent e18fed7 commit e4187ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/AbstractElasticSearchQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,12 @@ protected function withDateRangeQuery($fieldName, \DateTimeImmutable $from = nul
* @param string $defaultOperator
* @return AbstractElasticSearchQueryBuilder
*/
protected function withQueryStringQuery($queryString, array $fields = [], $type = BoolQuery::MUST, $defaultOperator = 'OR')
{
protected function withQueryStringQuery(
$queryString,
array $fields = [],
$type = BoolQuery::MUST,
$defaultOperator = 'OR'
) {
$parameters = [];
if (!empty($fields)) {
$parameters['fields'] = $fields;
Expand Down
5 changes: 3 additions & 2 deletions tests/AbstractElasticSearchQueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ abstract class AbstractElasticSearchQueryBuilderTest extends PHPUnit_Framework_T
* @param $value
* @return array
*/
protected function expectedTextQuery($value, array $fields = []) {
protected function expectedTextQuery($value, array $fields = [])
{
$textQuery = [
'query' => $value,
'default_operator' => 'AND',
Expand All @@ -22,4 +23,4 @@ protected function expectedTextQuery($value, array $fields = []) {

return $textQuery;
}
}
}

0 comments on commit e4187ba

Please sign in to comment.