Passed
Pull Request — master (#3936)
by Mark
21:20
created
src/PhpSpreadsheet/Calculation/Database/DStDevP.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      *                                        the column label in which you specify a condition for the
32 32
      *                                        column.
33 33
      */
34
-    public static function evaluate(array $database, array|null|int|string $field, array $criteria): float|string
34
+    public static function evaluate(array $database, array | null | int | string $field, array $criteria): float | string
35 35
     {
36 36
         $field = self::fieldExtract($database, $field);
37 37
         if ($field === null) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/OLE/PPS.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,12 +62,12 @@
 block discarded – undo
62 62
     /**
63 63
      * A timestamp.
64 64
      */
65
-    public float|int $Time1st;
65
+    public float | int $Time1st;
66 66
 
67 67
     /**
68 68
      * A timestamp.
69 69
      */
70
-    public float|int $Time2nd;
70
+    public float | int $Time2nd;
71 71
 
72 72
     /**
73 73
      * Starting block (small or big) for this PPS's data  inside the container.
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xls/Parser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     /**
71 71
      * The parse tree to be generated.
72 72
      */
73
-    public array|string $parseTree;
73
+    public array | string $parseTree;
74 74
 
75 75
     /**
76 76
      * Array of external sheets.
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Collection/Memory/SimpleCache3.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,14 +62,14 @@
 block discarded – undo
62 62
         return array_key_exists($key, $this->cache);
63 63
     }
64 64
 
65
-    public function set(string $key, mixed $value, null|int|DateInterval $ttl = null): bool
65
+    public function set(string $key, mixed $value, null | int | DateInterval $ttl = null): bool
66 66
     {
67 67
         $this->cache[$key] = $value;
68 68
 
69 69
         return true;
70 70
     }
71 71
 
72
-    public function setMultiple(iterable $values, null|int|DateInterval $ttl = null): bool
72
+    public function setMultiple(iterable $values, null | int | DateInterval $ttl = null): bool
73 73
     {
74 74
         foreach ($values as $key => $value) {
75 75
             $this->set($key, $value);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Hex2DecTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * @dataProvider providerHEX2DEC
32 32
      */
33
-    public function testDirectCallToHEX2DEC(mixed $expectedResult, bool|float|int|string $value): void
33
+    public function testDirectCallToHEX2DEC(mixed $expectedResult, bool | float | int | string $value): void
34 34
     {
35 35
         $result = ConvertHex::toDecimal($value);
36 36
         self::assertSame($expectedResult, $result);
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     /**
113 113
      * @dataProvider providerHEX2DECOds
114 114
      */
115
-    public function testHEX2DECOds(mixed $expectedResult, bool|float|int|string $value): void
115
+    public function testHEX2DECOds(mixed $expectedResult, bool | float | int | string $value): void
116 116
     {
117 117
         Functions::setCompatibilityMode(Functions::COMPATIBILITY_OPENOFFICE);
118 118
 
Please login to merge, or discard this patch.
PhpSpreadsheetTests/Calculation/Functions/Engineering/ConvertUoMTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     /**
49 49
      * @dataProvider providerCONVERTUOM
50 50
      */
51
-    public function testDirectCallToCONVERTUOM(float|int|string $expectedResult, float|int|string $value, string $from, string $to): void
51
+    public function testDirectCallToCONVERTUOM(float | int | string $expectedResult, float | int | string $value, string $from, string $to): void
52 52
     {
53 53
         $result = ConvertUOM::convert($value, $from, $to);
54 54
         self::assertEqualsWithDelta($expectedResult, $result, self::UOM_PRECISION);
Please login to merge, or discard this patch.
PhpSpreadsheetTests/Calculation/Functions/Engineering/ImaginaryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     /**
25 25
      * @dataProvider providerIMAGINARY
26 26
      */
27
-    public function testDirectCallToIMAGINARY(float|int|string $expectedResult, float|int|string $arg): void
27
+    public function testDirectCallToIMAGINARY(float | int | string $expectedResult, float | int | string $arg): void
28 28
     {
29 29
         $result = Complex::IMAGINARY((string) $arg);
30 30
         self::assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/DeltaTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     /**
17 17
      * @dataProvider providerDELTA
18 18
      */
19
-    public function testDirectCallToDELTA(mixed $expectedResult, bool|float|int|string $arg1, null|bool|float|int|string $arg2 = null): void
19
+    public function testDirectCallToDELTA(mixed $expectedResult, bool | float | int | string $arg1, null | bool | float | int | string $arg2 = null): void
20 20
     {
21 21
         $result = ($arg2 === null) ? Compare::delta($arg1) : Compare::delta($arg1, $arg2);
22 22
         self::assertSame($expectedResult, $result);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/GeStepTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     /**
17 17
      * @dataProvider providerGESTEP
18 18
      */
19
-    public function testDirectCallToGESTEP(int|string $expectedResult, bool|float|int|string $arg1, null|bool|float|int|string $arg2 = null): void
19
+    public function testDirectCallToGESTEP(int | string $expectedResult, bool | float | int | string $arg1, null | bool | float | int | string $arg2 = null): void
20 20
     {
21 21
         $result = ($arg2 === null) ? Compare::geStep($arg1) : Compare::geStep($arg1, $arg2);
22 22
         self::assertSame($expectedResult, $result);
Please login to merge, or discard this patch.