Completed
Pull Request — master (#348)
by
unknown
01:15
created
src/Aggregation/Bucketing/RangeAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         return $this;
69 69
     }
70 70
 
71
-    public function removeRange(int|float|null $from, int|float|null $to): bool
71
+    public function removeRange(int | float | null $from, int | float | null $to): bool
72 72
     {
73 73
         foreach ($this->ranges as $key => $range) {
74 74
             if (array_diff_assoc(array_filter(['from' => $from, 'to' => $to]), $range) === []) {
Please login to merge, or discard this patch.
src/Aggregation/Bucketing/ReverseNestedAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         return 'reverse_nested';
51 51
     }
52 52
 
53
-    public function getArray(): stdClass|array
53
+    public function getArray(): stdClass | array
54 54
     {
55 55
         $output = new stdClass();
56 56
         if ($this->getPath()) {
Please login to merge, or discard this patch.
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.