Completed
Pull Request — master (#348)
by
unknown
10:14
created
src/Aggregation/AbstractAggregation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     abstract protected function supportsNesting(): bool;
35 35
 
36
-    abstract protected function getArray(): array|stdClass|null;
36
+    abstract protected function getArray(): array | stdClass | null;
37 37
 
38 38
     public function __construct(string $name)
39 39
     {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         return [];
78 78
     }
79 79
 
80
-    public function getAggregation(string $name): AbstractAggregation|BuilderInterface|null
80
+    public function getAggregation(string $name): AbstractAggregation | BuilderInterface | null
81 81
     {
82 82
         if ($this->aggregations && $this->aggregations->has($name)) {
83 83
             return $this->aggregations->get($name);
Please login to merge, or discard this patch.
src/Aggregation/Metric/TopHitsAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
         return 'top_hits';
88 88
     }
89 89
 
90
-    public function getArray(): array|stdClass
90
+    public function getArray(): array | stdClass
91 91
     {
92 92
         $sortsOutput = null;
93 93
         $addedSorts = array_filter($this->getSorts());
Please login to merge, or discard this patch.
src/Aggregation/Bucketing/FiltersAggregation.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     public function __construct(
34 34
         string $name,
35 35
         ?array $filters = [],
36
-         bool $anonymous = false
36
+            bool $anonymous = false
37 37
     ) {
38 38
         parent::__construct($name);
39 39
 
Please login to merge, or discard this patch.