Passed
Push — master ( 055281...135371 )
by
unknown
19:31 queued 11:35
created
tests/PhpSpreadsheetTests/Reader/Csv/CsvTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 class CsvTest extends TestCase
13 13
 {
14 14
     #[DataProvider('providerDelimiterDetection')]
15
-    public function testDelimiterDetection(string $filename, string $expectedDelimiter, string $cell, string|float|int|null $expectedValue): void
15
+    public function testDelimiterDetection(string $filename, string $expectedDelimiter, string $cell, string | float | int | null $expectedValue): void
16 16
     {
17 17
         $reader = new Csv();
18 18
         $delim1 = $reader->getDelimiter();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Csv.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -699,7 +699,7 @@
 block discarded – undo
699 699
         string $enclosure = '"',
700 700
         ?string $escape = null,
701 701
         int $version = PHP_VERSION_ID
702
-    ): array|false {
702
+    ): array | false {
703 703
         $escape = $escape ?? self::getDefaultEscapeCharacter();
704 704
         if ($version >= 80400 && $escape !== '') {
705 705
             return @fgetcsv($stream, $length, $separator, $enclosure, $escape);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Oct2DecTest.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('providerOCT2DEC')]
32
-    public function testDirectCallToOCT2DEC(mixed $expectedResult, bool|string $value): void
32
+    public function testDirectCallToOCT2DEC(mixed $expectedResult, bool | string $value): void
33 33
     {
34 34
         $result = ConvertOctal::toDecimal($value);
35 35
         self::assertSame($expectedResult, $result);
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     }
99 99
 
100 100
     #[DataProvider('providerOCT2DECOds')]
101
-    public function testOCT2DECOds(mixed $expectedResult, bool|string $value): void
101
+    public function testOCT2DECOds(mixed $expectedResult, bool | string $value): void
102 102
     {
103 103
         Functions::setCompatibilityMode(
104 104
             Functions::COMPATIBILITY_OPENOFFICE
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Bin2DecTest.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('providerBIN2DEC')]
32
-    public function testDirectCallToBIN2DEC(float|int|string $expectedResult, bool|int|string $arg1): void
32
+    public function testDirectCallToBIN2DEC(float | int | string $expectedResult, bool | int | string $arg1): void
33 33
     {
34 34
         $result = ConvertBinary::toDecimal($arg1);
35 35
         self::assertSame($expectedResult, $result);
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     }
99 99
 
100 100
     #[DataProvider('providerBIN2DECOds')]
101
-    public function testBIN2DECOds(float|int|string $expectedResult, bool $arg1): void
101
+    public function testBIN2DECOds(float | int | string $expectedResult, bool $arg1): void
102 102
     {
103 103
         Functions::setCompatibilityMode(
104 104
             Functions::COMPATIBILITY_OPENOFFICE
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
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     }
30 30
 
31 31
     #[DataProvider('providerHEX2DEC')]
32
-    public function testDirectCallToHEX2DEC(mixed $expectedResult, bool|float|int|string $value): void
32
+    public function testDirectCallToHEX2DEC(mixed $expectedResult, bool | float | int | string $value): void
33 33
     {
34 34
         $result = ConvertHex::toDecimal($value);
35 35
         self::assertSame($expectedResult, $result);
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     }
99 99
 
100 100
     #[DataProvider('providerHEX2DECOds')]
101
-    public function testHEX2DECOds(mixed $expectedResult, bool|float|int|string $value): void
101
+    public function testHEX2DECOds(mixed $expectedResult, bool | float | int | string $value): void
102 102
     {
103 103
         Functions::setCompatibilityMode(
104 104
             Functions::COMPATIBILITY_OPENOFFICE
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/CustomFunction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 
10 10
 class CustomFunction
11 11
 {
12
-    public static function fourthPower(mixed $number): float|int|string
12
+    public static function fourthPower(mixed $number): float | int | string
13 13
     {
14 14
         try {
15 15
             $number = Helpers::validateNumericNullBool($number);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Reader/Xlsx/MySpreadsheet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 class MySpreadsheet extends Spreadsheet
10 10
 {
11
-    public function calcSquare(string $cellAddress): float|int|string
11
+    public function calcSquare(string $cellAddress): float | int | string
12 12
     {
13 13
         $value = $this->getActiveSheet()
14 14
             ->getCell($cellAddress)
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Financial/Helpers.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
      * @return int|string Result, or a string containing an error
26 26
      */
27
-    public static function daysPerYear(mixed $year, $basis = 0): string|int
27
+    public static function daysPerYear(mixed $year, $basis = 0): string | int
28 28
     {
29 29
         if (!is_int($year) && !is_string($year)) {
30 30
             return ExcelError::VALUE();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/DateTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     }
39 39
 
40 40
     #[DataProvider('providerDATE')]
41
-    public function testDirectCallToDATE(float|string $expectedResult, int|string $year, null|bool|float|int|string $month, float|int|string $day): void
41
+    public function testDirectCallToDATE(float | string $expectedResult, int | string $year, null | bool | float | int | string $month, float | int | string $day): void
42 42
     {
43 43
         $result = Date::fromYMD($year, $month, $day);
44 44
         self::assertSame($expectedResult, $result);
Please login to merge, or discard this patch.