Passed
Push — master ( 899b7d...16ac55 )
by Teye
04:07
created
src/Concerns/HasFilter.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
      * @return $this
61 61
      */
62 62
     public function where(
63
-        Closure|string|FilterInterface $filterOrDimensionOrClosure,
64
-        int|string|float|bool|null $operator = null,
65
-        array|int|string|float|bool $value = null,
63
+        Closure | string | FilterInterface $filterOrDimensionOrClosure,
64
+        int | string | float | bool | null $operator = null,
65
+        array | int | string | float | bool $value = null,
66 66
         string $boolean = 'and'
67 67
     ): self {
68 68
 
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
      * @see https://druid.apache.org/docs/latest/querying/filters/#array-contains-element-filter
244 244
      *
245 245
      */
246
-    public function whereArrayContains(string $column, int|float|string|null $value, string $boolean = 'and'): self
246
+    public function whereArrayContains(string $column, int | float | string | null $value, string $boolean = 'and'): self
247 247
     {
248 248
         $filter = new ArrayContainsFilter($column, $value);
249 249
 
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
      *
260 260
      * @return $this
261 261
      */
262
-    public function orWhereArrayContains(string $column, int|float|string|null $value): self
262
+    public function orWhereArrayContains(string $column, int | float | string | null $value): self
263 263
     {
264 264
         return $this->whereArrayContains($column, $value, 'or');
265 265
     }
@@ -315,9 +315,9 @@  discard block
 block discarded – undo
315 315
      * @see \Level23\Druid\Concerns\HasFilter::where()
316 316
      */
317 317
     public function orWhere(
318
-        string|FilterInterface|Closure $filterOrDimension,
319
-        string|int|float|bool $operator = null,
320
-        array|int|float|string|bool $value = null
318
+        string | FilterInterface | Closure $filterOrDimension,
319
+        string | int | float | bool $operator = null,
320
+        array | int | float | string | bool $value = null
321 321
     ): self {
322 322
         return $this->where($filterOrDimension, $operator, $value, 'or');
323 323
     }
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
      *
440 440
      * @return $this
441 441
      */
442
-    public function whereColumn(Closure|string $dimensionA, Closure|string $dimensionB, string $boolean = 'and'): self
442
+    public function whereColumn(Closure | string $dimensionA, Closure | string $dimensionB, string $boolean = 'and'): self
443 443
     {
444 444
         $filter = new ColumnComparisonFilter(
445 445
             $this->columnCompareDimension($dimensionA),
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
      *
469 469
      * @return $this
470 470
      */
471
-    public function orWhereColumn(Closure|string $dimensionA, Closure|string $dimensionB): self
471
+    public function orWhereColumn(Closure | string $dimensionA, Closure | string $dimensionB): self
472 472
     {
473 473
         return $this->whereColumn($dimensionA, $dimensionB, 'or');
474 474
     }
@@ -499,8 +499,8 @@  discard block
 block discarded – undo
499 499
      */
500 500
     public function whereBetween(
501 501
         string $dimension,
502
-        int|float|string $minValue,
503
-        int|float|string $maxValue,
502
+        int | float | string $minValue,
503
+        int | float | string $maxValue,
504 504
         ?DataType $valueType = null,
505 505
         string $boolean = 'and'
506 506
     ): self {
@@ -534,8 +534,8 @@  discard block
 block discarded – undo
534 534
      */
535 535
     public function orWhereBetween(
536 536
         string $dimension,
537
-        int|float|string $minValue,
538
-        int|float|string $maxValue,
537
+        int | float | string $minValue,
538
+        int | float | string $maxValue,
539 539
         ?DataType $valueType = null
540 540
     ): self {
541 541
         return $this->whereBetween($dimension, $minValue, $maxValue, $valueType, 'or');
@@ -785,7 +785,7 @@  discard block
 block discarded – undo
785 785
      * @return \Level23\Druid\Dimensions\DimensionInterface
786 786
      * @throws InvalidArgumentException
787 787
      */
788
-    protected function columnCompareDimension(Closure|string $dimension): DimensionInterface
788
+    protected function columnCompareDimension(Closure | string $dimension): DimensionInterface
789 789
     {
790 790
         if ($dimension instanceof Closure) {
791 791
             $builder = new DimensionBuilder();
Please login to merge, or discard this patch.