Skip to content

Commit

Permalink
fix psr2 style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
saimaz committed Feb 5, 2020
1 parent 370693d commit baace95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Query/TermLevel/TermsSetQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ public function toArray()

private function validateParameters(array $parameters)
{
if (
!isset($parameters[self::MINIMUM_SHOULD_MATCH_TYPE_FIELD]) &&
if (!isset($parameters[self::MINIMUM_SHOULD_MATCH_TYPE_FIELD]) &&
!isset($parameters[self::MINIMUM_SHOULD_MATCH_TYPE_SCRIPT])
) {
$message = "Either minimum_should_match_field or minimum_should_match_script must be set.";
Expand Down

0 comments on commit baace95

Please sign in to comment.