diff --git a/src/Aggregation/FilterAggregation.php b/src/Aggregation/FilterAggregation.php
index 362e5961cf4b6991bfafd70a0475a8f634704812..58e3deb57598716866f6bc8bd457d0eaab5791f1 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 40d31a88b7e860a0d424c54e392b4db4f8ea5cb9..4b402cf027c5fca171ca77ec71608c832767d189 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 805e35af7a5722767da424c478bc8f9b9641bf9f..4a5c19a916d8916e95d86cffdd4fdeb861acd6ed 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 f95b37560977cf45c885ec6b37523ad63777fb0d..27d0b0c87eda9d58c8c87390f706a2ef206fb647 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 85a32488c25daa4e6df402e94e2a9d099471a4ba..1634e765c619bd752c8db8811ec1e352a7a3d365 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.