Completed
Pull Request — master (#348)
by
unknown
01:15
created
src/BuilderBag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
         return array_filter(
106 106
             $this->bag,
107 107
             /** @var BuilderInterface $builder */
108
-            function (BuilderInterface $builder) use ($type) {
108
+            function(BuilderInterface $builder) use ($type) {
109 109
                 return $type === null || $builder->getType() == $type;
110 110
             }
111 111
         );
Please login to merge, or discard this patch.
src/Serializer/OrderedSerializer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         if (!empty($filteredData)) {
59 59
             uasort(
60 60
                 $filteredData,
61
-                function (OrderedNormalizerInterface $a, OrderedNormalizerInterface $b) {
61
+                function(OrderedNormalizerInterface $a, OrderedNormalizerInterface $b) {
62 62
                     return $a->getOrder() > $b->getOrder();
63 63
                 }
64 64
             );
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     {
81 81
         return array_filter(
82 82
             $array,
83
-            function ($value) {
83
+            function($value) {
84 84
                 return $value instanceof OrderedNormalizerInterface;
85 85
             }
86 86
         );
Please login to merge, or discard this patch.
src/Aggregation/Bucketing/CompositeAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         $array = is_array($array) ? array_merge($array, $agg->getParameters()) : $array;
59 59
 
60 60
         $this->sources[] = [
61
-            $agg->getName() => [ $agg->getType() => $array ]
61
+            $agg->getName() => [$agg->getType() => $array]
62 62
         ];
63 63
 
64 64
         return $this;
Please login to merge, or discard this patch.
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/AbstractAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         return [];
75 75
     }
76 76
 
77
-    public function getAggregation(string $name): AbstractAggregation|BuilderInterface|null
77
+    public function getAggregation(string $name): AbstractAggregation | BuilderInterface | null
78 78
     {
79 79
         if ($this->aggregations && $this->aggregations->has($name)) {
80 80
             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 = [];
93 93
         $addedSorts = array_filter($this->getSorts());
Please login to merge, or discard this patch.