Skip to content

Commit

Permalink
fixed code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Simonas Šerlinskas committed Aug 12, 2015
1 parent ddd2bae commit 92123ed
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
5 changes: 3 additions & 2 deletions src/Aggregation/FilterAggregation.php
Expand Up @@ -69,8 +69,9 @@ public function getArray()
throw new \LogicException("Filter aggregation `{$this->getName()}` has no filter added");
}

if ($this->filter instanceof BoolFilter && $this->filter->isRelevant() ||
!$this->filter instanceof BoolFilter) {
if ($this->filter instanceof BoolFilter && $this->filter->isRelevant()
|| !$this->filter instanceof BoolFilter
) {
$filterData = [$this->filter->getType() => $this->filter->toArray()];
} else {
$filterData = $this->filter->toArray();
Expand Down
2 changes: 1 addition & 1 deletion src/Query/FuzzyLikeThisQuery.php
Expand Up @@ -32,7 +32,7 @@ class FuzzyLikeThisQuery implements BuilderInterface
private $likeText;

/**
* @param string|string[] $fields Multiple fields can be set via comma or just an array.
* @param string|string[] $fields Multiple fields can be set via comma or just an array.
* @param string $likeText
* @param array $parameters
*/
Expand Down
7 changes: 4 additions & 3 deletions src/Search.php
Expand Up @@ -141,10 +141,11 @@ public function destroyEndpoint($type)
/**
* Sets parameters to the endpoint.
*
* @param string $endpointName
* @param array $parameters
* @param string $endpointName
* @param array $parameters
*/
private function setEndpointParameters($endpointName, array $parameters) {
private function setEndpointParameters($endpointName, array $parameters)
{
/** @var AbstractSearchEndpoint $endpoint */
$endpoint = $this->getEndpoint($endpointName);
$endpoint->setParameters($parameters);
Expand Down
2 changes: 1 addition & 1 deletion tests/Aggregation/FilterAggregationTest.php
Expand Up @@ -82,7 +82,7 @@ public function getToArrayData()
$result = [
'filter' => [
$boolFilter->getType() => $boolFilter->toArray(),
]
],
];


Expand Down
2 changes: 1 addition & 1 deletion tests/Query/BoolQueryTest.php
Expand Up @@ -18,7 +18,7 @@
/**
* Unit test for Bool.
*/
class BoolFilterTest extends \PHPUnit_Framework_TestCase
class BoolQueryTest extends \PHPUnit_Framework_TestCase
{
/**
* Tests isRelevant method.
Expand Down

0 comments on commit 92123ed

Please sign in to comment.