Passed
Pull Request — master (#62)
by Teye
04:39 queued 16s
created
src/Filters/ArrayContainsFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 {
10 10
     protected string $column;
11 11
 
12
-    protected string|int|float|null $value;
12
+    protected string | int | float | null $value;
13 13
 
14 14
     /**
15 15
      * @var \Level23\Druid\Types\DataType
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function __construct(
28 28
         string $column,
29
-        string|int|float|null $value,
29
+        string | int | float | null $value,
30 30
         DataType $matchValueType = null
31 31
     ) {
32 32
         if (is_null($matchValueType)) {
Please login to merge, or discard this patch.
src/Filters/BoundFilter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,11 +37,11 @@
 block discarded – undo
37 37
      */
38 38
     public function __construct(
39 39
         string $dimension,
40
-        string|BoundOperator $operator,
40
+        string | BoundOperator $operator,
41 41
         string $value,
42
-        string|SortingOrder $ordering = null
42
+        string | SortingOrder $ordering = null
43 43
     ) {
44
-        if(is_string($ordering)) {
44
+        if (is_string($ordering)) {
45 45
             $ordering = SortingOrder::from(strtolower($ordering));
46 46
         }
47 47
 
Please login to merge, or discard this patch.
src/Filters/SearchFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     /**
18 18
      * @var string|string[]
19 19
      */
20
-    protected string|array $value;
20
+    protected string | array $value;
21 21
 
22 22
     protected bool $caseSensitive;
23 23
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function __construct(
35 35
         string $dimension,
36
-        array|string $valueOrValues,
36
+        array | string $valueOrValues,
37 37
         bool $caseSensitive = false
38 38
     ) {
39 39
         $this->dimension     = $dimension;
Please login to merge, or discard this patch.
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.