Passed
Pull Request — master (#46)
by Teye
16:01
created
src/OrderBy/OrderBy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
      */
24 24
     public function __construct(
25 25
         string $dimension,
26
-        string|OrderByDirection $direction = OrderByDirection::ASC,
27
-        string|SortingOrder $dimensionOrder = SortingOrder::LEXICOGRAPHIC
26
+        string | OrderByDirection $direction = OrderByDirection::ASC,
27
+        string | SortingOrder $dimensionOrder = SortingOrder::LEXICOGRAPHIC
28 28
     ) {
29 29
         $this->dimension      = $dimension;
30 30
         $this->direction      = is_string($direction) ? OrderByDirection::make($direction) : $direction;
Please login to merge, or discard this patch.
src/Extractions/SearchQueryExtraction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * @var string|string[]
15 15
      */
16
-    protected string|array $valueOrValues;
16
+    protected string | array $valueOrValues;
17 17
 
18 18
     protected bool $caseSensitive;
19 19
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * @param string|string[] $valueOrValues
24 24
      * @param bool            $caseSensitive
25 25
      */
26
-    public function __construct(array|string $valueOrValues, bool $caseSensitive = false)
26
+    public function __construct(array | string $valueOrValues, bool $caseSensitive = false)
27 27
     {
28 28
         $this->valueOrValues = $valueOrValues;
29 29
         $this->caseSensitive = $caseSensitive;
Please login to merge, or discard this patch.
src/Extractions/StringFormatExtraction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     protected NullHandling $nullHandling;
19 19
 
20
-    public function __construct(string $sprintfExpression, string|NullHandling $nullHandling = NullHandling::NULL_STRING)
20
+    public function __construct(string $sprintfExpression, string | NullHandling $nullHandling = NullHandling::NULL_STRING)
21 21
     {
22 22
         $this->sprintfExpression = $sprintfExpression;
23 23
         $this->nullHandling      = is_string($nullHandling) ? NullHandling::from($nullHandling) : $nullHandling;
Please login to merge, or discard this patch.
src/Extractions/TimeFormatExtraction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      */
50 50
     public function __construct(
51 51
         ?string $format = null,
52
-        string|Granularity $granularity = null,
52
+        string | Granularity $granularity = null,
53 53
         ?string $locale = null,
54 54
         ?string $timeZone = null,
55 55
         ?bool $asMilliseconds = null
Please login to merge, or discard this patch.
src/Extractions/RegexExtraction.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
     public function __construct(
28 28
         string $regexp,
29 29
         int $groupToExtract = 1,
30
-        bool|string $keepMissingValue = false
30
+        bool | string $keepMissingValue = false
31 31
     ) {
32 32
         $this->regexp                  = $regexp;
33 33
         $this->groupToExtract          = $groupToExtract;
Please login to merge, or discard this patch.
src/Extractions/InlineLookupExtraction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      *                                               whether it is injective. If left unspecified, Druid will
35 35
      *                                               use the registered cluster-wide lookup configuration.
36 36
      */
37
-    public function __construct(array $map, bool|string $keepMissingValue = false, bool $optimize = true, bool $injective = null)
37
+    public function __construct(array $map, bool | string $keepMissingValue = false, bool $optimize = true, bool $injective = null)
38 38
     {
39 39
         $this->map       = $map;
40 40
         $this->optimize  = $optimize;
Please login to merge, or discard this patch.
src/Extractions/LookupExtraction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function __construct(
36 36
         string $lookupName,
37
-        bool|string $replaceMissingValue = true,
37
+        bool | string $replaceMissingValue = true,
38 38
         bool $optimize = true,
39 39
         ?bool $injective = null
40 40
 
Please login to merge, or discard this patch.
src/Dimensions/Dimension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@
 block discarded – undo
28 28
     public function __construct(
29 29
         string $dimension,
30 30
         string $outputName = null,
31
-        string|DataType $outputType = DataType::STRING,
31
+        string | DataType $outputType = DataType::STRING,
32 32
         ExtractionInterface $extractionFunction = null
33 33
     ) {
34 34
         $this->dimension  = $dimension;
35 35
         $this->outputName = $outputName ?: $dimension;
36 36
 
37
-        if( empty($outputType)) {
37
+        if (empty($outputType)) {
38 38
             $outputType = DataType::STRING;
39 39
         } else {
40 40
             $outputType = is_string($outputType) ? DataType::from(strtolower($outputType)) : $outputType;
Please login to merge, or discard this patch.
src/Dimensions/LookupDimension.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,12 +12,12 @@  discard block
 block discarded – undo
12 12
     /**
13 13
      * @var string|array<int|string,string>
14 14
      */
15
-    protected string|array $registeredLookupFunctionOrMap;
15
+    protected string | array $registeredLookupFunctionOrMap;
16 16
 
17 17
     /**
18 18
      * @var bool|string
19 19
      */
20
-    protected string|bool $keepMissingValue;
20
+    protected string | bool $keepMissingValue;
21 21
 
22 22
     protected bool $isOneToOne;
23 23
 
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function __construct(
41 41
         string $dimension,
42
-        array|string $registeredLookupFunctionOrMap,
42
+        array | string $registeredLookupFunctionOrMap,
43 43
         string $outputName = '',
44
-        bool|string $keepMissingValue = false,
44
+        bool | string $keepMissingValue = false,
45 45
         bool $isOneToOne = false
46 46
     ) {
47 47
         $this->dimension                     = $dimension;
Please login to merge, or discard this patch.