Skip to content
Snippets Groups Projects
Unverified Commit 5e11d92e authored by Simonas Šerlinskas's avatar Simonas Šerlinskas
Browse files

fix small code style issues

parent 58793513
No related branches found
No related tags found
No related merge requests found
...@@ -38,11 +38,13 @@ class AutoDateHistogramAggregation extends AbstractAggregation ...@@ -38,11 +38,13 @@ class AutoDateHistogramAggregation extends AbstractAggregation
$this->setField($field); $this->setField($field);
if ($buckets) if ($buckets) {
$this->addParameter('buckets', $buckets); $this->addParameter('buckets', $buckets);
}
if ($format) if ($format) {
$this->addParameter('format', $format); $this->addParameter('format', $format);
}
} }
/** /**
......
...@@ -55,4 +55,4 @@ class ParentIdQuery implements BuilderInterface ...@@ -55,4 +55,4 @@ class ParentIdQuery implements BuilderInterface
return [$this->getType() => $output]; return [$this->getType() => $output];
} }
} }
\ No newline at end of file
...@@ -67,8 +67,8 @@ class AdjacencyMatrixAggregationTest extends \PHPUnit\Framework\TestCase ...@@ -67,8 +67,8 @@ class AdjacencyMatrixAggregationTest extends \PHPUnit\Framework\TestCase
->method('toArray') ->method('toArray')
->willReturn(['test_field' => ['test_value' => 'test']]); ->willReturn(['test_field' => ['test_value' => 'test']]);
$aggregation->addFilter('first', $filter ); $aggregation->addFilter('first', $filter);
$aggregation->addFilter('second', $filter ); $aggregation->addFilter('second', $filter);
$results = $aggregation->toArray(); $results = $aggregation->toArray();
$expected = [ $expected = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment