Passed
Pull Request — master (#4240)
by Owen
13:17
created
tests/PhpSpreadsheetTests/Calculation/Functions/Database/DStDevPTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,14 +10,14 @@
 block discarded – undo
10 10
 class DStDevPTest extends SetupTeardownDatabases
11 11
 {
12 12
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDStDevP')]
13
-    public function testDirectCallToDStDevP(float|int|string $expectedResult, array $database, ?string $field, array $criteria): void
13
+    public function testDirectCallToDStDevP(float | int | string $expectedResult, array $database, ?string $field, array $criteria): void
14 14
     {
15 15
         $result = DStDevP::evaluate($database, $field, $criteria);
16 16
         self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12);
17 17
     }
18 18
 
19 19
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDStDevP')]
20
-    public function testDStDevPAsWorksheetFormula(float|int|string $expectedResult, array $database, ?string $field, array $criteria): void
20
+    public function testDStDevPAsWorksheetFormula(float | int | string $expectedResult, array $database, ?string $field, array $criteria): void
21 21
     {
22 22
         $this->prepareWorksheetWithFormula('DSTDEVP', $database, $field, $criteria);
23 23
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Database/DSumTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,14 +10,14 @@
 block discarded – undo
10 10
 class DSumTest extends SetupTeardownDatabases
11 11
 {
12 12
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDSum')]
13
-    public function testDirectCallToDSum(int|float|string $expectedResult, array $database, ?string $field, array $criteria): void
13
+    public function testDirectCallToDSum(int | float | string $expectedResult, array $database, ?string $field, array $criteria): void
14 14
     {
15 15
         $result = DSum::evaluate($database, $field, $criteria);
16 16
         self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12);
17 17
     }
18 18
 
19 19
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDSum')]
20
-    public function testDSumAsWorksheetFormula(int|float|string $expectedResult, array $database, ?string $field, array $criteria): void
20
+    public function testDSumAsWorksheetFormula(int | float | string $expectedResult, array $database, ?string $field, array $criteria): void
21 21
     {
22 22
         $this->prepareWorksheetWithFormula('DSUM', $database, $field, $criteria);
23 23
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Database/DAverageTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,14 +10,14 @@
 block discarded – undo
10 10
 class DAverageTest extends SetupTeardownDatabases
11 11
 {
12 12
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDAverage')]
13
-    public function testDirectCallToDAverage(int|float|string $expectedResult, array $database, string|int|null $field, array $criteria): void
13
+    public function testDirectCallToDAverage(int | float | string $expectedResult, array $database, string | int | null $field, array $criteria): void
14 14
     {
15 15
         $result = DAverage::evaluate($database, $field, $criteria);
16 16
         self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12);
17 17
     }
18 18
 
19 19
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDAverage')]
20
-    public function testDAverageAsWorksheetFormula(int|float|string $expectedResult, array $database, string|int|null $field, array $criteria): void
20
+    public function testDAverageAsWorksheetFormula(int | float | string $expectedResult, array $database, string | int | null $field, array $criteria): void
21 21
     {
22 22
         $this->prepareWorksheetWithFormula('DAVERAGE', $database, $field, $criteria);
23 23
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Database/DGetTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,14 +10,14 @@
 block discarded – undo
10 10
 class DGetTest extends SetupTeardownDatabases
11 11
 {
12 12
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDGet')]
13
-    public function testDirectCallToDGet(string|int $expectedResult, array $database, ?string $field, array $criteria): void
13
+    public function testDirectCallToDGet(string | int $expectedResult, array $database, ?string $field, array $criteria): void
14 14
     {
15 15
         $result = DGet::evaluate($database, $field, $criteria);
16 16
         self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12);
17 17
     }
18 18
 
19 19
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDGet')]
20
-    public function testDGetAsWorksheetFormula(string|int $expectedResult, array $database, ?string $field, array $criteria): void
20
+    public function testDGetAsWorksheetFormula(string | int $expectedResult, array $database, ?string $field, array $criteria): void
21 21
     {
22 22
         $this->prepareWorksheetWithFormula('DGET', $database, $field, $criteria);
23 23
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Reader/Csv/CsvIssue2232Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     }
31 31
 
32 32
     #[\PHPUnit\Framework\Attributes\DataProvider('providerIssue2232')]
33
-    public function testBooleanConversions(bool $useStringBinder, ?bool $preserveBoolString, bool|string $b2Value, bool|string $b3Value): void
33
+    public function testBooleanConversions(bool $useStringBinder, ?bool $preserveBoolString, bool | string $b2Value, bool | string $b3Value): void
34 34
     {
35 35
         if ($useStringBinder) {
36 36
             $binder = new StringValueBinder();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Reader/Csv/CsvNumberFormatTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     }
22 22
 
23 23
     #[\PHPUnit\Framework\Attributes\DataProvider('providerNumberFormatNoConversionTest')]
24
-    public function testNumberFormatNoConversion(int|string $expectedValue, string $expectedFormat, string $cellAddress): void
24
+    public function testNumberFormatNoConversion(int | string $expectedValue, string $expectedFormat, string $cellAddress): void
25 25
     {
26 26
         $spreadsheet = $this->csvReader->load($this->filename);
27 27
         $worksheet = $spreadsheet->getActiveSheet();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Reader/Csv/CsvTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 class CsvTest extends TestCase
12 12
 {
13 13
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDelimiterDetection')]
14
-    public function testDelimiterDetection(string $filename, string $expectedDelimiter, string $cell, string|float|int|null $expectedValue): void
14
+    public function testDelimiterDetection(string $filename, string $expectedDelimiter, string $cell, string | float | int | null $expectedValue): void
15 15
     {
16 16
         $reader = new Csv();
17 17
         $delim1 = $reader->getDelimiter();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Reader/Xls/ErrorCodeMapTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 class ErrorCodeMapTest extends TestCase
11 11
 {
12 12
     #[\PHPUnit\Framework\Attributes\DataProvider('errorCodeMapProvider')]
13
-    public function testErrorCode(bool|string $expected, int $index): void
13
+    public function testErrorCode(bool | string $expected, int $index): void
14 14
     {
15 15
         self::assertSame($expected, ErrorCode::lookup($index));
16 16
     }
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Shared/DateTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     }
53 53
 
54 54
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDateTimeExcelToTimestamp1900')]
55
-    public function testDateTimeExcelToTimestamp1900(float|int $expectedResult, float|int $excelDateTimeValue): void
55
+    public function testDateTimeExcelToTimestamp1900(float | int $expectedResult, float | int $excelDateTimeValue): void
56 56
     {
57 57
         if ($expectedResult > PHP_INT_MAX || $expectedResult < PHP_INT_MIN) {
58 58
             self::markTestSkipped('Test invalid on 32-bit system.');
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     }
70 70
 
71 71
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDateTimeTimestampToExcel1900')]
72
-    public function testDateTimeTimestampToExcel1900(float|int $expectedResult, float|int|string $unixTimestamp): void
72
+    public function testDateTimeTimestampToExcel1900(float | int $expectedResult, float | int | string $unixTimestamp): void
73 73
     {
74 74
         Date::setExcelCalendar(Date::CALENDAR_WINDOWS_1900);
75 75
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     }
84 84
 
85 85
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDateTimeDateTimeToExcel')]
86
-    public function testDateTimeDateTimeToExcel(float|int $expectedResult, DateTimeInterface $dateTimeObject): void
86
+    public function testDateTimeDateTimeToExcel(float | int $expectedResult, DateTimeInterface $dateTimeObject): void
87 87
     {
88 88
         Date::setExcelCalendar(Date::CALENDAR_WINDOWS_1900);
89 89
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     }
115 115
 
116 116
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDateTimeExcelToTimestamp1904')]
117
-    public function testDateTimeExcelToTimestamp1904(float|int $expectedResult, float|int $excelDateTimeValue): void
117
+    public function testDateTimeExcelToTimestamp1904(float | int $expectedResult, float | int $excelDateTimeValue): void
118 118
     {
119 119
         if ($expectedResult > PHP_INT_MAX || $expectedResult < PHP_INT_MIN) {
120 120
             self::markTestSkipped('Test invalid on 32-bit system.');
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     }
132 132
 
133 133
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDateTimeTimestampToExcel1904')]
134
-    public function testDateTimeTimestampToExcel1904(mixed $expectedResult, float|int|string $unixTimestamp): void
134
+    public function testDateTimeTimestampToExcel1904(mixed $expectedResult, float | int | string $unixTimestamp): void
135 135
     {
136 136
         Date::setExcelCalendar(Date::CALENDAR_MAC_1904);
137 137
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     }
158 158
 
159 159
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDateTimeExcelToTimestamp1900Timezone')]
160
-    public function testDateTimeExcelToTimestamp1900Timezone(float|int $expectedResult, float|int $excelDateTimeValue, string $timezone): void
160
+    public function testDateTimeExcelToTimestamp1900Timezone(float | int $expectedResult, float | int $excelDateTimeValue, string $timezone): void
161 161
     {
162 162
         if (is_numeric($expectedResult) && ($expectedResult > PHP_INT_MAX || $expectedResult < PHP_INT_MIN)) {
163 163
             self::markTestSkipped('Test invalid on 32-bit system.');
Please login to merge, or discard this patch.