Completed
Pull Request — master (#348)
by
unknown
09:42 queued 08:20
created
src/InnerHit/NestedInnerHit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 
86 86
     private function getPathType(): ?string
87 87
     {
88
-        return match ($this->getType()) {
88
+        return match($this->getType()) {
89 89
             'nested' => 'path',
90 90
             'parent' => 'type',
91 91
             default => null
Please login to merge, or discard this patch.
src/Query/Compound/BoostingQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public function __construct(
26 26
         private BuilderInterface $positive,
27 27
         private BuilderInterface $negative,
28
-        private int|float $negativeBoost
28
+        private int | float $negativeBoost
29 29
     ) {
30 30
 
31 31
     }
Please login to merge, or discard this patch.
src/Query/Compound/BoolQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
             array_walk(
40 40
                 $queries,
41
-                function (BuilderInterface $query) use ($type): void {
41
+                function(BuilderInterface $query) use ($type): void {
42 42
                     $this->add($query, $type);
43 43
                 }
44 44
             );
Please login to merge, or discard this patch.
src/Search.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -453,7 +453,7 @@
 block discarded – undo
453 453
         return $this;
454 454
     }
455 455
 
456
-    public function addUriParam(string $name, string|array|bool $value): static
456
+    public function addUriParam(string $name, string | array | bool $value): static
457 457
     {
458 458
         if (in_array(
459 459
             $name,
Please login to merge, or discard this patch.
src/Aggregation/Matrix/MatrixStatsAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
     public function __construct(
29 29
         private string $name,
30
-        private string|array $field,
30
+        private string | array $field,
31 31
         private ?array $missing = null,
32 32
         private ?string $mode = null
33 33
     ) {
Please login to merge, or discard this patch.
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.