From 92123ed07ea7a96b9cb3a5bbd8f2bb5ecf93b24d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simonas=20=C5=A0erlinskas?= <simonas.serlinskas@nfq.com>
Date: Wed, 12 Aug 2015 09:29:07 +0300
Subject: [PATCH] fixed code style issues

---
 src/Aggregation/FilterAggregation.php       | 5 +++--
 src/Query/FuzzyLikeThisQuery.php            | 2 +-
 src/Search.php                              | 7 ++++---
 tests/Aggregation/FilterAggregationTest.php | 2 +-
 tests/Query/BoolQueryTest.php               | 2 +-
 5 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/Aggregation/FilterAggregation.php b/src/Aggregation/FilterAggregation.php
index 362e596..58e3deb 100644
--- a/src/Aggregation/FilterAggregation.php
+++ b/src/Aggregation/FilterAggregation.php
@@ -69,8 +69,9 @@ class FilterAggregation extends AbstractAggregation
             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();
diff --git a/src/Query/FuzzyLikeThisQuery.php b/src/Query/FuzzyLikeThisQuery.php
index 40d31a8..4b402cf 100644
--- a/src/Query/FuzzyLikeThisQuery.php
+++ b/src/Query/FuzzyLikeThisQuery.php
@@ -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
      */
diff --git a/src/Search.php b/src/Search.php
index 805e35a..4a5c19a 100644
--- a/src/Search.php
+++ b/src/Search.php
@@ -141,10 +141,11 @@ class Search
     /**
      * 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);
diff --git a/tests/Aggregation/FilterAggregationTest.php b/tests/Aggregation/FilterAggregationTest.php
index f95b375..27d0b0c 100644
--- a/tests/Aggregation/FilterAggregationTest.php
+++ b/tests/Aggregation/FilterAggregationTest.php
@@ -82,7 +82,7 @@ class FilterAggregationTest extends \PHPUnit_Framework_TestCase
         $result = [
             'filter' => [
                 $boolFilter->getType() => $boolFilter->toArray(),
-            ]
+            ],
         ];
 
 
diff --git a/tests/Query/BoolQueryTest.php b/tests/Query/BoolQueryTest.php
index 85a3248..1634e76 100644
--- a/tests/Query/BoolQueryTest.php
+++ b/tests/Query/BoolQueryTest.php
@@ -18,7 +18,7 @@ use ONGR\ElasticsearchDSL\Query\TermQuery;
 /**
  * Unit test for Bool.
  */
-class BoolFilterTest extends \PHPUnit_Framework_TestCase
+class BoolQueryTest extends \PHPUnit_Framework_TestCase
 {
     /**
      * Tests isRelevant method.
-- 
GitLab