Passed
Pull Request — master (#4368)
by Owen
12:09
created
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/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.
tests/PhpSpreadsheetTests/Shared/Date2Test.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     #[\PHPUnit\Framework\Attributes\DataProvider('providerTimeOnly')]
41
-    public function testTimeOnly(int|float $expectedResult, int|float|string $value, ?string $format = null): void
41
+    public function testTimeOnly(int | float $expectedResult, int | float | string $value, ?string $format = null): void
42 42
     {
43 43
         Cell::setCalculateDateTimeType(Cell::CALCULATE_TIME_FLOAT);
44 44
         $this->spreadsheet = new Spreadsheet();
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     }
82 82
 
83 83
     #[\PHPUnit\Framework\Attributes\DataProvider('providerDateAndTime')]
84
-    public function testDateAndTime(int|float $expectedResult, int|float|string $value, ?string $format = null): void
84
+    public function testDateAndTime(int | float $expectedResult, int | float | string $value, ?string $format = null): void
85 85
     {
86 86
         Cell::setCalculateDateTimeType(Cell::CALCULATE_DATE_TIME_FLOAT);
87 87
         $this->spreadsheet = new Spreadsheet();
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     }
125 125
 
126 126
     #[\PHPUnit\Framework\Attributes\DataProvider('providerAsis')]
127
-    public function testDefault(int|float $expectedResult, int|float|string $value, ?string $format = null): void
127
+    public function testDefault(int | float $expectedResult, int | float | string $value, ?string $format = null): void
128 128
     {
129 129
         //Cell::setCalculateDateTimeType(Cell::CALCULATE_DATE_TIME_ASIS);
130 130
         $this->spreadsheet = new Spreadsheet();
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     }
145 145
 
146 146
     #[\PHPUnit\Framework\Attributes\DataProvider('providerAsis')]
147
-    public function testAsis(int|float $expectedResult, int|float|string $value, ?string $format = null): void
147
+    public function testAsis(int | float $expectedResult, int | float | string $value, ?string $format = null): void
148 148
     {
149 149
         Cell::setCalculateDateTimeType(Cell::CALCULATE_DATE_TIME_ASIS);
150 150
         $this->spreadsheet = new Spreadsheet();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/RefRangeTest.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 RefRangeTest extends TestCase
12 12
 {
13 13
     #[\PHPUnit\Framework\Attributes\DataProvider('providerRefRange')]
14
-    public function testRefRange(int|string $expectedResult, string $rangeString): void
14
+    public function testRefRange(int | string $expectedResult, string $rangeString): void
15 15
     {
16 16
         $spreadsheet = new Spreadsheet();
17 17
         $sheet = $spreadsheet->getActiveSheet();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Writer/Xlsx/FloatsRetainedTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 class FloatsRetainedTest extends TestCase
14 14
 {
15 15
     #[\PHPUnit\Framework\Attributes\DataProvider('providerIntyFloatsRetainedByWriter')]
16
-    public function testIntyFloatsRetainedByWriter(float|int $value): void
16
+    public function testIntyFloatsRetainedByWriter(float | int $value): void
17 17
     {
18 18
         $outputFilename = File::temporaryFilename();
19 19
         $spreadsheet = new Spreadsheet();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Cell/DefaultValueBinderTest.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
 class DefaultValueBinderTest extends TestCase
17 17
 {
18 18
     #[\PHPUnit\Framework\Attributes\DataProvider('binderProvider')]
19
-    public function testBindValue(null|string|bool|int|float|DateTime|DateTimeImmutable $value): void
19
+    public function testBindValue(null | string | bool | int | float | DateTime | DateTimeImmutable $value): void
20 20
     {
21 21
         $spreadsheet = new Spreadsheet();
22 22
         $sheet = $spreadsheet->getActiveSheet();
Please login to merge, or discard this patch.