Passed
Push — master ( ebe21d...60eced )
by Teye
04:35
created
src/PostAggregations/ExpressionPostAggregator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@
 block discarded – undo
13 13
 
14 14
     protected ?string $ordering;
15 15
 
16
-    protected DataType|string|null $outputType;
16
+    protected DataType | string | null $outputType;
17 17
 
18 18
     public function __construct(
19 19
         string $outputName,
20 20
         string $expression,
21 21
         ?string $ordering = null,
22
-        DataType|string|null $outputType = null
22
+        DataType | string | null $outputType = null
23 23
 
24 24
     ) {
25 25
         $this->outputName = $outputName;
Please login to merge, or discard this patch.
src/Concerns/HasPostAggregations.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      *
118 118
      * @return $this
119 119
      */
120
-    public function quantile(string $as, Closure|string $fieldOrClosure, float $fraction): self
120
+    public function quantile(string $as, Closure | string $fieldOrClosure, float $fraction): self
121 121
     {
122 122
         $fields = $this->buildFields([$fieldOrClosure]);
123 123
         if ($fields->count() != 1 || !$fields[0]) {
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      *
153 153
      * @return $this
154 154
      */
155
-    public function quantiles(string $as, Closure|string $fieldOrClosure, array $fractions): self
155
+    public function quantiles(string $as, Closure | string $fieldOrClosure, array $fractions): self
156 156
     {
157 157
         $fields = $this->buildFields([$fieldOrClosure]);
158 158
         if ($fields->count() != 1 || !$fields[0]) {
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      */
194 194
     public function histogram(
195 195
         string $as,
196
-        Closure|string $fieldOrClosure,
196
+        Closure | string $fieldOrClosure,
197 197
         ?array $splitPoints = null,
198 198
         ?int $numBins = null
199 199
     ): self {
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      *
232 232
      * @return $this
233 233
      */
234
-    public function rank(string $as, Closure|string $fieldOrClosure, float|int $value): self
234
+    public function rank(string $as, Closure | string $fieldOrClosure, float | int $value): self
235 235
     {
236 236
         $fields = $this->buildFields([$fieldOrClosure]);
237 237
         if ($fields->count() != 1 || !$fields[0]) {
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
      *
269 269
      * @return $this
270 270
      */
271
-    public function cdf(string $as, Closure|string $fieldOrClosure, array $splitPoints): self
271
+    public function cdf(string $as, Closure | string $fieldOrClosure, array $splitPoints): self
272 272
     {
273 273
         $fields = $this->buildFields([$fieldOrClosure]);
274 274
         if ($fields->count() != 1 || !$fields[0]) {
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
      *
302 302
      * @return $this
303 303
      */
304
-    public function sketchSummary(string $as, Closure|string $fieldOrClosure): self
304
+    public function sketchSummary(string $as, Closure | string $fieldOrClosure): self
305 305
     {
306 306
         $fields = $this->buildFields([$fieldOrClosure]);
307 307
         if ($fields->count() != 1 || !$fields[0]) {
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
      *
452 452
      * @return $this
453 453
      */
454
-    public function constant(float|int $numericValue, string $as): self
454
+    public function constant(float | int $numericValue, string $as): self
455 455
     {
456 456
         $this->postAggregations[] = new ConstantPostAggregator($as, $numericValue);
457 457
 
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
         string $as,
631 631
         string $expression,
632 632
         ?string $ordering = null,
633
-        DataType|string|null $outputType = null
633
+        DataType | string | null $outputType = null
634 634
     ): self {
635 635
         $this->postAggregations[] = new ExpressionPostAggregator(
636 636
             $as,
Please login to merge, or discard this patch.