Passed
Pull Request — master (#4466)
by Owen
15:22
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/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/CodePageTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      * @param string|string[] $expectedResult
15 15
      */
16 16
     #[\PHPUnit\Framework\Attributes\DataProvider('providerCodePage')]
17
-    public function testCodePageNumberToName(array|string $expectedResult, int $codePageIndex): void
17
+    public function testCodePageNumberToName(array | string $expectedResult, int $codePageIndex): void
18 18
     {
19 19
         if ($expectedResult === 'exception') {
20 20
             $this->expectException(Exception::class);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Shared/FontTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     }
43 43
 
44 44
     #[\PHPUnit\Framework\Attributes\DataProvider('providerFontSizeToPixels')]
45
-    public function testFontSizeToPixels(float|int $expectedResult, float|int $size): void
45
+    public function testFontSizeToPixels(float | int $expectedResult, float | int $size): void
46 46
     {
47 47
         $result = Font::fontSizeToPixels($size);
48 48
         self::assertEquals($expectedResult, $result);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     }
55 55
 
56 56
     #[\PHPUnit\Framework\Attributes\DataProvider('providerInchSizeToPixels')]
57
-    public function testInchSizeToPixels(float|int $expectedResult, float|int $size): void
57
+    public function testInchSizeToPixels(float | int $expectedResult, float | int $size): void
58 58
     {
59 59
         $result = Font::inchSizeToPixels($size);
60 60
         self::assertEqualsWithDelta($expectedResult, $result, self::FONT_PRECISION);
Please login to merge, or discard this patch.