Completed
Pull Request — master (#348)
by
unknown
10:14
created
src/Aggregation/Bucketing/GeoDistanceAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
     /**
89 89
      * Add range to aggregation.
90 90
      */
91
-    public function addRange(null|int|float|string $from = null, null|int|float|string $to = null): static
91
+    public function addRange(null | int | float | string $from = null, null | int | float | string $to = null): static
92 92
     {
93 93
         $range = array_filter(
94 94
             [
Please login to merge, or discard this patch.
src/Aggregation/Bucketing/SamplerAggregation.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
     public function getArray(): array
57 57
     {
58
-       return array_filter(
58
+        return array_filter(
59 59
             [
60 60
                 'field' => $this->getField(),
61 61
                 'shard_size' => $this->getShardSize(),
Please login to merge, or discard this patch.
src/Aggregation/Bucketing/DateRangeAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
                 'to' => $to,
73 73
                 'key' => $key,
74 74
             ],
75
-            fn(mixed $v): bool => !is_null($v)
75
+            fn(mixed $v) : bool => !is_null($v)
76 76
         );
77 77
 
78 78
         if (empty($range)) {
Please login to merge, or discard this patch.
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.