Completed
Push — master ( 0e570a...e16571 )
by
unknown
36s queued 25s
created
tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitAndTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,14 +15,14 @@  discard block
 block discarded – undo
15 15
 class BitAndTest extends TestCase
16 16
 {
17 17
     #[DataProvider('providerBITAND')]
18
-    public function testDirectCallToBITAND(float|int|string $expectedResult, null|bool|int|float|string $arg1, null|bool|int|float|string $arg2): void
18
+    public function testDirectCallToBITAND(float | int | string $expectedResult, null | bool | int | float | string $arg1, null | bool | int | float | string $arg2): void
19 19
     {
20 20
         $result = BitWise::BITAND($arg1, $arg2);
21 21
         self::assertSame($expectedResult, $result);
22 22
     }
23 23
 
24 24
     #[DataProvider('providerBITAND')]
25
-    public function testBITANDAsFormula(float|int|string $expectedResult, mixed ...$args): void
25
+    public function testBITANDAsFormula(float | int | string $expectedResult, mixed ...$args): void
26 26
     {
27 27
         $arguments = new FormulaArguments(...$args);
28 28
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     }
35 35
 
36 36
     #[DataProvider('providerBITAND')]
37
-    public function testBITANDInWorksheet(float|int|string $expectedResult, mixed ...$args): void
37
+    public function testBITANDInWorksheet(float | int | string $expectedResult, mixed ...$args): void
38 38
     {
39 39
         $arguments = new FormulaArguments(...$args);
40 40
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Oct2BinTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     }
30 30
 
31 31
     #[DataProvider('providerOCT2BIN')]
32
-    public function testDirectCallToOCT2BIN(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void
32
+    public function testDirectCallToOCT2BIN(mixed $expectedResult, bool | float | int | string $value, ?int $digits = null): void
33 33
     {
34 34
         $result = ($digits === null) ? ConvertOctal::toBinary($value) : ConvertOctal::toBinary($value, $digits);
35 35
         self::assertSame($expectedResult, $result);
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     }
104 104
 
105 105
     #[DataProvider('providerOCT2BINOds')]
106
-    public function testOCT2BINOds(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void
106
+    public function testOCT2BINOds(mixed $expectedResult, bool | float | int | string $value, ?int $digits = null): void
107 107
     {
108 108
         Functions::setCompatibilityMode(Functions::COMPATIBILITY_OPENOFFICE);
109 109
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Oct2HexTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     }
30 30
 
31 31
     #[DataProvider('providerOCT2HEX')]
32
-    public function testDirectCallToOCT2HEX(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void
32
+    public function testDirectCallToOCT2HEX(mixed $expectedResult, bool | float | int | string $value, ?int $digits = null): void
33 33
     {
34 34
         $result = ($digits === null) ? ConvertOctal::toHex($value) : ConvertOctal::toHex($value, $digits);
35 35
         self::assertSame($expectedResult, $result);
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     }
104 104
 
105 105
     #[DataProvider('providerOCT2HEXOds')]
106
-    public function testOCT2HEXOds(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void
106
+    public function testOCT2HEXOds(mixed $expectedResult, bool | float | int | string $value, ?int $digits = null): void
107 107
     {
108 108
         Functions::setCompatibilityMode(Functions::COMPATIBILITY_OPENOFFICE);
109 109
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitXorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,14 +15,14 @@  discard block
 block discarded – undo
15 15
 class BitXorTest extends TestCase
16 16
 {
17 17
     #[DataProvider('providerBITXOR')]
18
-    public function testDirectCallToBITXOR(float|int|string $expectedResult, null|bool|int|float|string $arg1, null|bool|int|float|string $arg2): void
18
+    public function testDirectCallToBITXOR(float | int | string $expectedResult, null | bool | int | float | string $arg1, null | bool | int | float | string $arg2): void
19 19
     {
20 20
         $result = BitWise::BITXOR($arg1, $arg2);
21 21
         self::assertSame($expectedResult, $result);
22 22
     }
23 23
 
24 24
     #[DataProvider('providerBITXOR')]
25
-    public function testBITXORAsFormula(float|int|string $expectedResult, mixed ...$args): void
25
+    public function testBITXORAsFormula(float | int | string $expectedResult, mixed ...$args): void
26 26
     {
27 27
         $arguments = new FormulaArguments(...$args);
28 28
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     }
35 35
 
36 36
     #[DataProvider('providerBITXOR')]
37
-    public function testBITXORInWorksheet(float|int|string $expectedResult, mixed ...$args): void
37
+    public function testBITXORInWorksheet(float | int | string $expectedResult, mixed ...$args): void
38 38
     {
39 39
         $arguments = new FormulaArguments(...$args);
40 40
 
Please login to merge, or discard this patch.
PhpSpreadsheetTests/Calculation/Functions/Engineering/BitLShiftTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 class BitLShiftTest extends TestCase
16 16
 {
17 17
     #[DataProvider('providerBITLSHIFT')]
18
-    public function testDirectCallToBITLSHIFT(float|int|string $expectedResult, null|bool|int|float|string $arg1, null|bool|int|float|string $arg2): void
18
+    public function testDirectCallToBITLSHIFT(float | int | string $expectedResult, null | bool | int | float | string $arg1, null | bool | int | float | string $arg2): void
19 19
     {
20 20
         $result = BitWise::BITLSHIFT($arg1, $arg2);
21 21
         self::assertSame($expectedResult, $result);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Random.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      *
16 16
      * @return float|int Random number
17 17
      */
18
-    public static function rand(): int|float
18
+    public static function rand(): int | float
19 19
     {
20 20
         return mt_rand(0, 10000000) / 10000000;
21 21
     }
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
33 33
      *            with the same dimensions
34 34
      */
35
-    public static function randBetween(mixed $min, mixed $max): array|string|int
35
+    public static function randBetween(mixed $min, mixed $max): array | string | int
36 36
     {
37 37
         if (is_array($min) || is_array($max)) {
38 38
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $min, $max);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      *
68 68
      * @return array<mixed>|string The resulting array, or a string containing an error
69 69
      */
70
-    public static function randArray(mixed $rows = 1, mixed $columns = 1, mixed $min = 0, mixed $max = 1, bool $wholeNumber = false): string|array
70
+    public static function randArray(mixed $rows = 1, mixed $columns = 1, mixed $min = 0, mixed $max = 1, bool $wholeNumber = false): string | array
71 71
     {
72 72
         try {
73 73
             $rows = (int) Helpers::validateNumericNullSubstitution($rows, 1);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         return array_chunk(
88 88
             array_map(
89
-                fn (): int|float => $wholeNumber
89
+                fn (): int | float => $wholeNumber
90 90
                         ? mt_rand((int) $min, (int) $max)
91 91
                         : (mt_rand() / mt_getrandmax()) * ($max - $min) + $min,
92 92
                 array_fill(0, $rows * $columns, $min)
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/SeriesSum.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      *
23 23
      * @return array<mixed>|float|int|string The result, or a string containing an error
24 24
      */
25
-    public static function evaluate(mixed $x, mixed $n, mixed $m, ...$args): array|string|float|int
25
+    public static function evaluate(mixed $x, mixed $n, mixed $m, ...$args): array | string | float | int
26 26
     {
27 27
         if (is_array($x) || is_array($n) || is_array($m)) {
28 28
             return self::evaluateArrayArgumentsSubset([self::class, __FUNCTION__], 3, $x, $n, $m, ...$args);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/SumSquares.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      *
19 19
      * @param mixed ...$args Data values
20 20
      */
21
-    public static function sumSquare(mixed ...$args): string|int|float
21
+    public static function sumSquare(mixed ...$args): string | int | float
22 22
     {
23 23
         try {
24 24
             $returnValue = 0;
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @param mixed[] $matrixData1 Matrix #1
64 64
      * @param mixed[] $matrixData2 Matrix #2
65 65
      */
66
-    public static function sumXSquaredMinusYSquared(array $matrixData1, array $matrixData2): string|int|float
66
+    public static function sumXSquaredMinusYSquared(array $matrixData1, array $matrixData2): string | int | float
67 67
     {
68 68
         try {
69 69
             /** @var array<float|int> */
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * @param mixed[] $matrixData1 Matrix #1
92 92
      * @param mixed[] $matrixData2 Matrix #2
93 93
      */
94
-    public static function sumXSquaredPlusYSquared(array $matrixData1, array $matrixData2): string|int|float
94
+    public static function sumXSquaredPlusYSquared(array $matrixData1, array $matrixData2): string | int | float
95 95
     {
96 96
         try {
97 97
             /** @var array<float|int> */
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      * @param mixed[] $matrixData1 Matrix #1
120 120
      * @param mixed[] $matrixData2 Matrix #2
121 121
      */
122
-    public static function sumXMinusYSquared(array $matrixData1, array $matrixData2): string|int|float
122
+    public static function sumXMinusYSquared(array $matrixData1, array $matrixData2): string | int | float
123 123
     {
124 124
         try {
125 125
             /** @var array<float|int> */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Operations.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
24 24
      *            with the same dimensions
25 25
      */
26
-    public static function mod(mixed $dividend, mixed $divisor): array|string|float
26
+    public static function mod(mixed $dividend, mixed $divisor): array | string | float
27 27
     {
28 28
         if (is_array($dividend) || is_array($divisor)) {
29 29
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $dividend, $divisor);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
60 60
      *            with the same dimensions
61 61
      */
62
-    public static function power(null|array|bool|float|int|string $x, null|array|bool|float|int|string $y): array|float|int|string
62
+    public static function power(null | array | bool | float | int | string $x, null | array | bool | float | int | string $y): array | float | int | string
63 63
     {
64 64
         if (is_array($x) || is_array($y)) {
65 65
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $x, $y);
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      *
97 97
      * @param mixed ...$args Data values
98 98
      */
99
-    public static function product(mixed ...$args): string|float
99
+    public static function product(mixed ...$args): string | float
100 100
     {
101 101
         $args = array_filter(
102 102
             Functions::flattenArray($args),
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      * @return array<mixed>|int|string If an array of numbers is passed as an argument, then the returned result will also be an array
137 137
      *            with the same dimensions
138 138
      */
139
-    public static function quotient(mixed $numerator, mixed $denominator): array|string|int
139
+    public static function quotient(mixed $numerator, mixed $denominator): array | string | int
140 140
     {
141 141
         if (is_array($numerator) || is_array($denominator)) {
142 142
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $numerator, $denominator);
Please login to merge, or discard this patch.