Completed
Push — master ( 3bb10f...9da522 )
by
unknown
39s queued 27s
created
tests/PhpSpreadsheetTests/Calculation/Functions/Logical/XorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     }
19 19
 
20 20
     #[\PHPUnit\Framework\Attributes\DataProvider('providerXORLiteral')]
21
-    public function testXORLiteral(mixed $expectedResult, float|string $formula): void
21
+    public function testXORLiteral(mixed $expectedResult, float | string $formula): void
22 22
     {
23 23
         $sheet = $this->getSheet();
24 24
         $sheet->getCell('A1')->setValue("=XOR($formula)");
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style/NumberFormat/Formatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
      *
117 117
      * @return string Formatted string
118 118
      */
119
-    public static function toFormattedString($value, string $format, null|array|callable $callBack = null): string
119
+    public static function toFormattedString($value, string $format, null | array | callable $callBack = null): string
120 120
     {
121 121
         while (is_array($value)) {
122 122
             $value = array_shift($value);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Cell/DataValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         return $formula;
75 75
     }
76 76
 
77
-    private function numericOperator(DataValidation $dataValidation, int|float $cellValue, Cell $cell): bool
77
+    private function numericOperator(DataValidation $dataValidation, int | float $cellValue, Cell $cell): bool
78 78
     {
79 79
         $operator = $dataValidation->getOperator();
80 80
         $formula1 = self::evaluateNumericFormula(
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Document/PropertiesTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     }
47 47
 
48 48
     #[DataProvider('providerCreationTime')]
49
-    public function testSetCreated(null|int $expectedCreationTime, null|int|string $created): void
49
+    public function testSetCreated(null | int $expectedCreationTime, null | int | string $created): void
50 50
     {
51 51
         if ($expectedCreationTime === null) {
52 52
             do {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     }
81 81
 
82 82
     #[DataProvider('providerModifiedTime')]
83
-    public function testSetModified(mixed $expectedModifiedTime, null|int|string $modified): void
83
+    public function testSetModified(mixed $expectedModifiedTime, null | int | string $modified): void
84 84
     {
85 85
         if ($expectedModifiedTime === null) {
86 86
             do {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     }
163 163
 
164 164
     #[DataProvider('providerCustomProperties')]
165
-    public function testSetCustomProperties(mixed $expectedType, mixed $expectedValue, string $propertyName, null|bool|float|int|string $propertyValue, ?string $propertyType = null): void
165
+    public function testSetCustomProperties(mixed $expectedType, mixed $expectedValue, string $propertyName, null | bool | float | int | string $propertyValue, ?string $propertyType = null): void
166 166
     {
167 167
         if ($propertyType === null) {
168 168
             $this->properties->setCustomProperty($propertyName, $propertyValue);
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/LookupRef/IndirectTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
     }
133 133
 
134 134
     #[DataProvider('providerRelative')]
135
-    public function testR1C1Relative(string|int|null $expectedResult, string $address): void
135
+    public function testR1C1Relative(string | int | null $expectedResult, string $address): void
136 136
     {
137 137
         $this->setArrayAsValue();
138 138
         $sheet = $this->getSheet();
Please login to merge, or discard this patch.
tests/PhpSpreadsheetTests/Calculation/Functions/Logical/AndTest.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
     #[DataProvider('providerANDLiteral')]
24
-    public function testANDLiteral(bool|string $expectedResult, float|int|string $formula): void
24
+    public function testANDLiteral(bool | string $expectedResult, float | int | string $formula): void
25 25
     {
26 26
         $sheet = $this->getSheet();
27 27
         $sheet->getCell('A1')->setValue("=AND($formula)");
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Financial/CashFlow/Single.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      * @param mixed $principal the present value
21 21
      * @param float[] $schedule an array of interest rates to apply
22 22
      */
23
-    public static function futureValue(mixed $principal, array $schedule): string|float
23
+    public static function futureValue(mixed $principal, array $schedule): string | float
24 24
     {
25 25
         $principal = Functions::flattenSingleValue($principal);
26 26
         $schedule = Functions::flattenArray($schedule);
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      *
51 51
      * @return float|string Result, or a string containing an error
52 52
      */
53
-    public static function periods(mixed $rate, mixed $presentValue, mixed $futureValue): string|float
53
+    public static function periods(mixed $rate, mixed $presentValue, mixed $futureValue): string | float
54 54
     {
55 55
         $rate = Functions::flattenSingleValue($rate);
56 56
         $presentValue = Functions::flattenSingleValue($presentValue);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      *
84 84
      * @return float|string Result, or a string containing an error
85 85
      */
86
-    public static function interestRate(mixed $periods = 0.0, mixed $presentValue = 0.0, mixed $futureValue = 0.0): string|float
86
+    public static function interestRate(mixed $periods = 0.0, mixed $presentValue = 0.0, mixed $futureValue = 0.0): string | float
87 87
     {
88 88
         $periods = Functions::flattenSingleValue($periods);
89 89
         $presentValue = Functions::flattenSingleValue($presentValue);
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 ($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.
tests/PhpSpreadsheetTests/Calculation/Functions/LookupRef/OffsetTest.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 OffsetTest extends AllSetupTeardown
12 12
 {
13 13
     #[DataProvider('providerOFFSET')]
14
-    public function testOFFSET(mixed $expectedResult, null|string $cellReference = null): void
14
+    public function testOFFSET(mixed $expectedResult, null | string $cellReference = null): void
15 15
     {
16 16
         $result = LookupRef\Offset::OFFSET($cellReference);
17 17
         self::assertSame($expectedResult, $result);
Please login to merge, or discard this patch.