Completed
Push — master ( 0e570a...e16571 )
by
unknown
36s queued 25s
created
src/PhpSpreadsheet/Calculation/MathTrig/MatrixFunctions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      *
58 58
      * @return array<mixed>|string The resulting array, or a string containing an error
59 59
      */
60
-    public static function sequence(mixed $rows = 1, mixed $columns = 1, mixed $start = 1, mixed $step = 1): string|array
60
+    public static function sequence(mixed $rows = 1, mixed $columns = 1, mixed $start = 1, mixed $step = 1): string | array
61 61
     {
62 62
         try {
63 63
             $rows = (int) Helpers::validateNumericNullSubstitution($rows, 1);
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      *
121 121
      * @return array<mixed>|string The result, or a string containing an error
122 122
      */
123
-    public static function inverse(mixed $matrixValues): array|string
123
+    public static function inverse(mixed $matrixValues): array | string
124 124
     {
125 125
         try {
126 126
             $matrix = self::getMatrix($matrixValues);
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      *
144 144
      * @return array<mixed>|string The result, or a string containing an error
145 145
      */
146
-    public static function multiply(mixed $matrixData1, mixed $matrixData2): array|string
146
+    public static function multiply(mixed $matrixData1, mixed $matrixData2): array | string
147 147
     {
148 148
         try {
149 149
             $matrixA = self::getMatrix($matrixData1);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/Text.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * @return array<mixed>|int|string If an array of values is passed for the argument, then the returned result
24 24
      *            will also be an array with matching dimensions
25 25
      */
26
-    public static function length(mixed $value = ''): array|int|string
26
+    public static function length(mixed $value = ''): array | int | string
27 27
     {
28 28
         if (is_array($value)) {
29 29
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * @return array<mixed>|bool|string If an array of values is passed for either of the arguments, then the returned result
52 52
      *            will also be an array with matching dimensions
53 53
      */
54
-    public static function exact(mixed $value1, mixed $value2): array|bool|string
54
+    public static function exact(mixed $value1, mixed $value2): array | bool | string
55 55
     {
56 56
         if (is_array($value1) || is_array($value2)) {
57 57
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value1, $value2);
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      * @return array<mixed>|string If an array of values is passed for the argument, then the returned result
77 77
      *            will also be an array with matching dimensions
78 78
      */
79
-    public static function test(mixed $testValue = ''): array|string
79
+    public static function test(mixed $testValue = ''): array | string
80 80
     {
81 81
         if (is_array($testValue)) {
82 82
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $testValue);
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      *
111 111
      * @return array<mixed>|string the array built from the text, split by the row and column delimiters, or an error string
112 112
      */
113
-    public static function split(mixed $text, $columnDelimiter = null, $rowDelimiter = null, bool $ignoreEmpty = false, bool $matchMode = true, mixed $padding = '#N/A'): array|string
113
+    public static function split(mixed $text, $columnDelimiter = null, $rowDelimiter = null, bool $ignoreEmpty = false, bool $matchMode = true, mixed $padding = '#N/A'): array | string
114 114
     {
115 115
         $text = Functions::flattenSingleValue($text);
116 116
         if (ErrorValue::isError($text, true)) {
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         if (is_array($delimiter) && count($valueSet) > 1) {
195 195
             /** @var array<?string> $valueSet */
196 196
             $quotedDelimiters = array_map(
197
-                fn (?string $delimiter): string => preg_quote($delimiter ?? '', '/'),
197
+                fn (?string $delimiter) : string => preg_quote($delimiter ?? '', '/'),
198 198
                 $valueSet
199 199
             );
200 200
             $delimiters = implode('|', $quotedDelimiters);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/Extract.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      *         If an array of values is passed for the $value or $chars arguments, then the returned result
25 25
      *            will also be an array with matching dimensions
26 26
      */
27
-    public static function left(mixed $value, mixed $chars = 1): array|string
27
+    public static function left(mixed $value, mixed $chars = 1): array | string
28 28
     {
29 29
         if (is_array($value) || is_array($chars)) {
30 30
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $chars);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      *         If an array of values is passed for the $value, $start or $chars arguments, then the returned result
55 55
      *            will also be an array with matching dimensions
56 56
      */
57
-    public static function mid(mixed $value, mixed $start, mixed $chars): array|string
57
+    public static function mid(mixed $value, mixed $start, mixed $chars): array | string
58 58
     {
59 59
         if (is_array($value) || is_array($start) || is_array($chars)) {
60 60
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $start, $chars);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      *         If an array of values is passed for the $value or $chars arguments, then the returned result
84 84
      *            will also be an array with matching dimensions
85 85
      */
86
-    public static function right(mixed $value, mixed $chars = 1): array|string
86
+    public static function right(mixed $value, mixed $chars = 1): array | string
87 87
     {
88 88
         if (is_array($value) || is_array($chars)) {
89 89
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $chars);
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      *         If an array of values is passed for any of the arguments, then the returned result
127 127
      *            will also be an array with matching dimensions
128 128
      */
129
-    public static function before(mixed $text, $delimiter, mixed $instance = 1, mixed $matchMode = 0, mixed $matchEnd = 0, mixed $ifNotFound = '#N/A'): array|string
129
+    public static function before(mixed $text, $delimiter, mixed $instance = 1, mixed $matchMode = 0, mixed $matchEnd = 0, mixed $ifNotFound = '#N/A'): array | string
130 130
     {
131 131
         if (is_array($text) || is_array($instance) || is_array($matchMode) || is_array($matchEnd) || is_array($ifNotFound)) {
132 132
             return self::evaluateArrayArgumentsIgnore([self::class, __FUNCTION__], 1, $text, $delimiter, $instance, $matchMode, $matchEnd, $ifNotFound);
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      *         If an array of values is passed for any of the arguments, then the returned result
191 191
      *            will also be an array with matching dimensions
192 192
      */
193
-    public static function after(mixed $text, $delimiter, mixed $instance = 1, mixed $matchMode = 0, mixed $matchEnd = 0, mixed $ifNotFound = '#N/A'): array|string
193
+    public static function after(mixed $text, $delimiter, mixed $instance = 1, mixed $matchMode = 0, mixed $matchEnd = 0, mixed $ifNotFound = '#N/A'): array | string
194 194
     {
195 195
         if (is_array($text) || is_array($instance) || is_array($matchMode) || is_array($matchEnd) || is_array($ifNotFound)) {
196 196
             return self::evaluateArrayArgumentsIgnore([self::class, __FUNCTION__], 1, $text, $delimiter, $instance, $matchMode, $matchEnd, $ifNotFound);
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
      *
235 235
      * @return array<string>|string
236 236
      */
237
-    private static function validateTextBeforeAfter(string $text, null|array|string $delimiter, int $instance, int $matchMode, int $matchEnd, mixed $ifNotFound): array|string
237
+    private static function validateTextBeforeAfter(string $text, null | array | string $delimiter, int $instance, int $matchMode, int $matchEnd, mixed $ifNotFound): array | string
238 238
     {
239 239
         $flags = self::matchFlags($matchMode);
240 240
         $delimiter = self::buildDelimiter($delimiter);
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
             /** @var array<?string> */
272 272
             $delimiter = Functions::flattenArray($delimiter);
273 273
             $quotedDelimiters = array_map(
274
-                fn (?string $delimiter): string => preg_quote($delimiter ?? '', '/'),
274
+                fn (?string $delimiter) : string => preg_quote($delimiter ?? '', '/'),
275 275
                 $delimiter
276 276
             );
277 277
             $delimiters = implode('|', $quotedDelimiters);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/BitWise.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      *
18 18
      * @return int[]
19 19
      */
20
-    private static function splitNumber(float|int $number): array
20
+    private static function splitNumber(float | int $number): array
21 21
     {
22 22
         return [(int) floor($number / self::SPLIT_DIVISOR), (int) fmod($number, self::SPLIT_DIVISOR)];
23 23
     }
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @return array<mixed>|int|string If an array of numbers is passed as an argument, then the returned result will also be an array
37 37
      *            with the same dimensions
38 38
      */
39
-    public static function BITAND(null|array|bool|float|int|string $number1, null|array|bool|float|int|string $number2): array|string|int|float
39
+    public static function BITAND(null | array | bool | float | int | string $number1, null | array | bool | float | int | string $number2): array | string | int | float
40 40
     {
41 41
         if (is_array($number1) || is_array($number2)) {
42 42
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number1, $number2);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @return array<mixed>|int|string If an array of numbers is passed as an argument, then the returned result will also be an array
69 69
      *            with the same dimensions
70 70
      */
71
-    public static function BITOR(null|array|bool|float|int|string $number1, null|array|bool|float|int|string $number2): array|string|int|float
71
+    public static function BITOR(null | array | bool | float | int | string $number1, null | array | bool | float | int | string $number2): array | string | int | float
72 72
     {
73 73
         if (is_array($number1) || is_array($number2)) {
74 74
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number1, $number2);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      * @return array<mixed>|int|string If an array of numbers is passed as an argument, then the returned result will also be an array
102 102
      *            with the same dimensions
103 103
      */
104
-    public static function BITXOR(null|array|bool|float|int|string $number1, null|array|bool|float|int|string $number2): array|string|int|float
104
+    public static function BITXOR(null | array | bool | float | int | string $number1, null | array | bool | float | int | string $number2): array | string | int | float
105 105
     {
106 106
         if (is_array($number1) || is_array($number2)) {
107 107
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number1, $number2);
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * @return array<mixed>|float|string If an array of numbers is passed as an argument, then the returned result will also be an array
135 135
      *            with the same dimensions
136 136
      */
137
-    public static function BITLSHIFT(null|array|bool|float|int|string $number, null|array|bool|float|int|string $shiftAmount): array|string|float
137
+    public static function BITLSHIFT(null | array | bool | float | int | string $number, null | array | bool | float | int | string $shiftAmount): array | string | float
138 138
     {
139 139
         if (is_array($number) || is_array($shiftAmount)) {
140 140
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $shiftAmount);
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      * @return array<mixed>|float|string If an array of numbers is passed as an argument, then the returned result will also be an array
170 170
      *            with the same dimensions
171 171
      */
172
-    public static function BITRSHIFT(null|array|bool|float|int|string $number, null|array|bool|float|int|string $shiftAmount): array|string|float
172
+    public static function BITRSHIFT(null | array | bool | float | int | string $number, null | array | bool | float | int | string $shiftAmount): array | string | float
173 173
     {
174 174
         if (is_array($number) || is_array($shiftAmount)) {
175 175
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $shiftAmount);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/Complex.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
32 32
      *            with the same dimensions
33 33
      */
34
-    public static function COMPLEX(mixed $realNumber = 0.0, mixed $imaginary = 0.0, mixed $suffix = 'i'): array|string
34
+    public static function COMPLEX(mixed $realNumber = 0.0, mixed $imaginary = 0.0, mixed $suffix = 'i'): array | string
35 35
     {
36 36
         if (is_array($realNumber) || is_array($imaginary) || is_array($suffix)) {
37 37
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $realNumber, $imaginary, $suffix);
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
74 74
      *            with the same dimensions
75 75
      */
76
-    public static function IMAGINARY($complexNumber): array|string|float
76
+    public static function IMAGINARY($complexNumber): array | string | float
77 77
     {
78 78
         if (is_array($complexNumber)) {
79 79
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
104 104
      *            with the same dimensions
105 105
      */
106
-    public static function IMREAL($complexNumber): array|string|float
106
+    public static function IMREAL($complexNumber): array | string | float
107 107
     {
108 108
         if (is_array($complexNumber)) {
109 109
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/ComplexFunctions.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * @return array<mixed>|float|string         If an array of numbers is passed as an argument, then the returned result will also be an array
26 26
      *            with the same dimensions
27 27
      */
28
-    public static function IMABS(array|string $complexNumber): array|float|string
28
+    public static function IMABS(array | string $complexNumber): array | float | string
29 29
     {
30 30
         if (is_array($complexNumber)) {
31 31
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      * @return array<mixed>|float|string If an array of numbers is passed as an argument, then the returned result will also be an array
56 56
      *            with the same dimensions
57 57
      */
58
-    public static function IMARGUMENT(array|string $complexNumber): array|float|string
58
+    public static function IMARGUMENT(array | string $complexNumber): array | float | string
59 59
     {
60 60
         if (is_array($complexNumber)) {
61 61
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
89 89
      *            with the same dimensions
90 90
      */
91
-    public static function IMCONJUGATE(array|string $complexNumber): array|string
91
+    public static function IMCONJUGATE(array | string $complexNumber): array | string
92 92
     {
93 93
         if (is_array($complexNumber)) {
94 94
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
118 118
      *            with the same dimensions
119 119
      */
120
-    public static function IMCOS(array|string $complexNumber): array|string
120
+    public static function IMCOS(array | string $complexNumber): array | string
121 121
     {
122 122
         if (is_array($complexNumber)) {
123 123
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
147 147
      *            with the same dimensions
148 148
      */
149
-    public static function IMCOSH(array|string $complexNumber): array|string
149
+    public static function IMCOSH(array | string $complexNumber): array | string
150 150
     {
151 151
         if (is_array($complexNumber)) {
152 152
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
176 176
      *            with the same dimensions
177 177
      */
178
-    public static function IMCOT(array|string $complexNumber): array|string
178
+    public static function IMCOT(array | string $complexNumber): array | string
179 179
     {
180 180
         if (is_array($complexNumber)) {
181 181
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
205 205
      *            with the same dimensions
206 206
      */
207
-    public static function IMCSC(array|string $complexNumber): array|string
207
+    public static function IMCSC(array | string $complexNumber): array | string
208 208
     {
209 209
         if (is_array($complexNumber)) {
210 210
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
234 234
      *            with the same dimensions
235 235
      */
236
-    public static function IMCSCH(array|string $complexNumber): array|string
236
+    public static function IMCSCH(array | string $complexNumber): array | string
237 237
     {
238 238
         if (is_array($complexNumber)) {
239 239
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
263 263
      *            with the same dimensions
264 264
      */
265
-    public static function IMSIN(array|string $complexNumber): array|string
265
+    public static function IMSIN(array | string $complexNumber): array | string
266 266
     {
267 267
         if (is_array($complexNumber)) {
268 268
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
292 292
      *            with the same dimensions
293 293
      */
294
-    public static function IMSINH(array|string $complexNumber): array|string
294
+    public static function IMSINH(array | string $complexNumber): array | string
295 295
     {
296 296
         if (is_array($complexNumber)) {
297 297
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
321 321
      *            with the same dimensions
322 322
      */
323
-    public static function IMSEC(array|string $complexNumber): array|string
323
+    public static function IMSEC(array | string $complexNumber): array | string
324 324
     {
325 325
         if (is_array($complexNumber)) {
326 326
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
350 350
      *            with the same dimensions
351 351
      */
352
-    public static function IMSECH(array|string $complexNumber): array|string
352
+    public static function IMSECH(array | string $complexNumber): array | string
353 353
     {
354 354
         if (is_array($complexNumber)) {
355 355
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
379 379
      *            with the same dimensions
380 380
      */
381
-    public static function IMTAN(array|string $complexNumber): array|string
381
+    public static function IMTAN(array | string $complexNumber): array | string
382 382
     {
383 383
         if (is_array($complexNumber)) {
384 384
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
408 408
      *            with the same dimensions
409 409
      */
410
-    public static function IMSQRT(array|string $complexNumber): array|string
410
+    public static function IMSQRT(array | string $complexNumber): array | string
411 411
     {
412 412
         if (is_array($complexNumber)) {
413 413
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
442 442
      *            with the same dimensions
443 443
      */
444
-    public static function IMLN(array|string $complexNumber): array|string
444
+    public static function IMLN(array | string $complexNumber): array | string
445 445
     {
446 446
         if (is_array($complexNumber)) {
447 447
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
475 475
      *            with the same dimensions
476 476
      */
477
-    public static function IMLOG10(array|string $complexNumber): array|string
477
+    public static function IMLOG10(array | string $complexNumber): array | string
478 478
     {
479 479
         if (is_array($complexNumber)) {
480 480
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
508 508
      *            with the same dimensions
509 509
      */
510
-    public static function IMLOG2(array|string $complexNumber): array|string
510
+    public static function IMLOG2(array | string $complexNumber): array | string
511 511
     {
512 512
         if (is_array($complexNumber)) {
513 513
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
541 541
      *            with the same dimensions
542 542
      */
543
-    public static function IMEXP(array|string $complexNumber): array|string
543
+    public static function IMEXP(array | string $complexNumber): array | string
544 544
     {
545 545
         if (is_array($complexNumber)) {
546 546
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
572 572
      *            with the same dimensions
573 573
      */
574
-    public static function IMPOWER(array|string $complexNumber, array|float|int|string $realNumber): array|string
574
+    public static function IMPOWER(array | string $complexNumber, array | float | int | string $realNumber): array | string
575 575
     {
576 576
         if (is_array($complexNumber) || is_array($realNumber)) {
577 577
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $complexNumber, $realNumber);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/Erf.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @return array<mixed>|float|string If an array of numbers is passed as an argument, then the returned result will also be an array
35 35
      *            with the same dimensions
36 36
      */
37
-    public static function ERF(mixed $lower, mixed $upper = null): array|float|string
37
+    public static function ERF(mixed $lower, mixed $upper = null): array | float | string
38 38
     {
39 39
         if (is_array($lower) || is_array($upper)) {
40 40
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $lower, $upper);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     /**
84 84
      * Method to calculate the erf value.
85 85
      */
86
-    public static function erfValue(float|int|string $value): float
86
+    public static function erfValue(float | int | string $value): float
87 87
     {
88 88
         $value = (float) $value;
89 89
         if (abs($value) > 2.2) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/ComplexOperations.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
29 29
      *            with the same dimensions
30 30
      */
31
-    public static function IMDIV(array|string $complexDividend, array|string $complexDivisor): array|string
31
+    public static function IMDIV(array | string $complexDividend, array | string $complexDivisor): array | string
32 32
     {
33 33
         if (is_array($complexDividend) || is_array($complexDivisor)) {
34 34
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $complexDividend, $complexDivisor);
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * @return array<mixed>|string If an array of numbers is passed as an argument, then the returned result will also be an array
58 58
      *            with the same dimensions
59 59
      */
60
-    public static function IMSUB(array|string $complexNumber1, array|string $complexNumber2): array|string
60
+    public static function IMSUB(array | string $complexNumber1, array | string $complexNumber2): array | string
61 61
     {
62 62
         if (is_array($complexNumber1) || is_array($complexNumber2)) {
63 63
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $complexNumber1, $complexNumber2);
Please login to merge, or discard this patch.