Failed Conditions
Pull Request — master (#3723)
by Adrien
14:15
created
src/PhpSpreadsheet/Calculation/MathTrig/Floor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     /**
129 129
      * Avoid Scrutinizer problems concerning complexity.
130 130
      */
131
-    private static function argumentsOkPrecise(float $number, float $significance): string|float
131
+    private static function argumentsOkPrecise(float $number, float $significance): string | float
132 132
     {
133 133
         if ($significance == 0.0) {
134 134
             return ExcelError::DIV0();
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      *
146 146
      * @return float|string Rounded Number, or a string containing an error
147 147
      */
148
-    private static function argsOk(float $number, float $significance, int $mode): string|float
148
+    private static function argsOk(float $number, float $significance, int $mode): string | float
149 149
     {
150 150
         if (!$significance) {
151 151
             return ExcelError::DIV0();
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     /**
172 172
      * Avoid Scrutinizer problems concerning complexity.
173 173
      */
174
-    private static function argumentsOk(float $number, float $significance): string|float
174
+    private static function argumentsOk(float $number, float $significance): string | float
175 175
     {
176 176
         if ($significance == 0.0) {
177 177
             return ExcelError::DIV0();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Factorial.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
28 28
      *            with the same dimensions
29 29
      */
30
-    public static function fact($factVal): array|string|float|int
30
+    public static function fact($factVal): array | string | float | int
31 31
     {
32 32
         if (is_array($factVal)) {
33 33
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $factVal);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
70 70
      *            with the same dimensions
71 71
      */
72
-    public static function factDouble($factVal): array|string|float|int
72
+    public static function factDouble($factVal): array | string | float | int
73 73
     {
74 74
         if (is_array($factVal)) {
75 75
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $factVal);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      *
102 102
      * @return float|string The result, or a string containing an error
103 103
      */
104
-    public static function multinomial(...$args): string|int|float
104
+    public static function multinomial(...$args): string | int | float
105 105
     {
106 106
         $summer = 0;
107 107
         $divisor = 1;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Operations.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
24 24
      *            with the same dimensions
25 25
      */
26
-    public static function mod($dividend, $divisor): array|string|float
26
+    public static function mod($dividend, $divisor): array | string | float
27 27
     {
28 28
         if (is_array($dividend) || is_array($divisor)) {
29 29
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $dividend, $divisor);
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      *
99 99
      * @param mixed ...$args Data values
100 100
      */
101
-    public static function product(...$args): string|float
101
+    public static function product(...$args): string | float
102 102
     {
103 103
         $args = array_filter(
104 104
             Functions::flattenArray($args),
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
142 142
      *            with the same dimensions
143 143
      */
144
-    public static function quotient($numerator, $denominator): array|string|int
144
+    public static function quotient($numerator, $denominator): array | string | int
145 145
     {
146 146
         if (is_array($numerator) || is_array($denominator)) {
147 147
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $numerator, $denominator);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Random.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      *
16 16
      * @return float Random number
17 17
      */
18
-    public static function rand(): int|float
18
+    public static function rand(): int | float
19 19
     {
20 20
         return mt_rand(0, 10000000) / 10000000;
21 21
     }
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
33 33
      *            with the same dimensions
34 34
      */
35
-    public static function randBetween($min, $max): array|string|int
35
+    public static function randBetween($min, $max): array | string | int
36 36
     {
37 37
         if (is_array($min) || is_array($max)) {
38 38
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $min, $max);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      *
68 68
      * @return array|string The resulting array, or a string containing an error
69 69
      */
70
-    public static function randArray($rows = 1, $columns = 1, $min = 0, $max = 1, $wholeNumber = false): string|array
70
+    public static function randArray($rows = 1, $columns = 1, $min = 0, $max = 1, $wholeNumber = false): string | array
71 71
     {
72 72
         try {
73 73
             $rows = (int) Helpers::validateNumericNullSubstitution($rows, 1);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         return array_chunk(
88 88
             array_map(
89
-                function () use ($min, $max, $wholeNumber): int|float {
89
+                function () use ($min, $max, $wholeNumber): int | float {
90 90
                     return $wholeNumber
91 91
                         ? mt_rand((int) $min, (int) $max)
92 92
                         : (mt_rand() / mt_getrandmax()) * ($max - $min) + $min;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Round.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
23 23
      *            with the same dimensions
24 24
      */
25
-    public static function round($number, $precision): array|string|float
25
+    public static function round($number, $precision): array | string | float
26 26
     {
27 27
         if (is_array($number) || is_array($precision)) {
28 28
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $precision);
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
51 51
      *            with the same dimensions
52 52
      */
53
-    public static function up($number, $digits): array|string|float
53
+    public static function up($number, $digits): array | string | float
54 54
     {
55 55
         if (is_array($number) || is_array($digits)) {
56 56
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $digits);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
87 87
      *            with the same dimensions
88 88
      */
89
-    public static function down($number, $digits): array|string|float
89
+    public static function down($number, $digits): array | string | float
90 90
     {
91 91
         if (is_array($number) || is_array($digits)) {
92 92
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $digits);
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
123 123
      *            with the same dimensions
124 124
      */
125
-    public static function multiple($number, $multiple): array|string|int|float
125
+    public static function multiple($number, $multiple): array | string | int | float
126 126
     {
127 127
         if (is_array($number) || is_array($multiple)) {
128 128
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $multiple);
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
166 166
      *            with the same dimensions
167 167
      */
168
-    public static function even($number): array|string|float
168
+    public static function even($number): array | string | float
169 169
     {
170 170
         if (is_array($number)) {
171 171
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
192 192
      *            with the same dimensions
193 193
      */
194
-    public static function odd($number): array|string|int|float
194
+    public static function odd($number): array | string | int | float
195 195
     {
196 196
         if (is_array($number)) {
197 197
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/LookupRef.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      *                                FALSE                CELL_ADDRESS returns an R1C1-style reference
42 42
      * @param array|string $sheetText Optional Name of worksheet to use
43 43
      */
44
-    public static function cellAddress($row, $column, $relativity = 1, $referenceStyle = true, $sheetText = ''): string|array
44
+    public static function cellAddress($row, $column, $relativity = 1, $referenceStyle = true, $sheetText = ''): string | array
45 45
     {
46 46
         return Address::cell($row, $column, $relativity, $referenceStyle, $sheetText);
47 47
     }
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
      *
269 269
      * @return array|float|int|string The relative position of the found item
270 270
      */
271
-    public static function MATCH($lookupValue, $lookupArray, $matchType = 1): array|float|int|string
271
+    public static function MATCH($lookupValue, $lookupArray, $matchType = 1): array | float | int | string
272 272
     {
273 273
         return LookupRef\ExcelMatch::MATCH($lookupValue, $lookupArray, $matchType);
274 274
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      *
54 54
      * @return array|float|string the inverse tangent of the specified x- and y-coordinates, or a string containing an error
55 55
      */
56
-    public static function ATAN2($xCoordinate = null, $yCoordinate = null): string|float|array
56
+    public static function ATAN2($xCoordinate = null, $yCoordinate = null): string | float | array
57 57
     {
58 58
         return MathTrig\Trig\Tangent::atan2($xCoordinate, $yCoordinate);
59 59
     }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      *
77 77
      * @return array|string the text representation with the given radix (base)
78 78
      */
79
-    public static function BASE($number, $radix, $minLength = null): string|array
79
+    public static function BASE($number, $radix, $minLength = null): string | array
80 80
     {
81 81
         return MathTrig\Base::evaluate($number, $radix, $minLength);
82 82
     }
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      *
150 150
      * @return array|float|string Rounded Number, or a string containing an error
151 151
      */
152
-    public static function EVEN($number): string|float|array
152
+    public static function EVEN($number): string | float | array
153 153
     {
154 154
         return MathTrig\Round::even($number);
155 155
     }
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
      *
362 362
      * @return array|float|string The result, or a string containing an error
363 363
      */
364
-    public static function logBase($number, $base = 10): string|float|array
364
+    public static function logBase($number, $base = 10): string | float | array
365 365
     {
366 366
         return MathTrig\Logarithms::withBase($number, $base);
367 367
     }
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
      *
404 404
      * @return array|string The result, or a string containing an error
405 405
      */
406
-    public static function MINVERSE($matrixValues): string|array
406
+    public static function MINVERSE($matrixValues): string | array
407 407
     {
408 408
         return MathTrig\MatrixFunctions::inverse($matrixValues);
409 409
     }
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
      *
421 421
      * @return array|string The result, or a string containing an error
422 422
      */
423
-    public static function MMULT($matrixData1, $matrixData2): string|array
423
+    public static function MMULT($matrixData1, $matrixData2): string | array
424 424
     {
425 425
         return MathTrig\MatrixFunctions::multiply($matrixData1, $matrixData2);
426 426
     }
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
      *
457 457
      * @return array|float|string Rounded Number, or a string containing an error
458 458
      */
459
-    public static function MROUND($number, $multiple): string|int|float|array
459
+    public static function MROUND($number, $multiple): string | int | float | array
460 460
     {
461 461
         return MathTrig\Round::multiple($number, $multiple);
462 462
     }
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
      *
493 493
      * @return array|float|int|string Rounded Number, or a string containing an error
494 494
      */
495
-    public static function ODD($number): string|int|float|array
495
+    public static function ODD($number): string | int | float | array
496 496
     {
497 497
         return MathTrig\Round::odd($number);
498 498
     }
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
      *
573 573
      * @return array|int|string Random number
574 574
      */
575
-    public static function RAND($min = 0, $max = 0): string|int|array
575
+    public static function RAND($min = 0, $max = 0): string | int | array
576 576
     {
577 577
         return MathTrig\Random::randBetween($min, $max);
578 578
     }
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
      *
592 592
      * @return array|string Roman numeral, or a string containing an error
593 593
      */
594
-    public static function ROMAN($aValue, $style = 0): string|array
594
+    public static function ROMAN($aValue, $style = 0): string | array
595 595
     {
596 596
         return MathTrig\Roman::evaluate($aValue, $style);
597 597
     }
@@ -610,7 +610,7 @@  discard block
 block discarded – undo
610 610
      *
611 611
      * @return array|float|string Rounded Number, or a string containing an error
612 612
      */
613
-    public static function ROUNDUP($number, $digits): string|float|array
613
+    public static function ROUNDUP($number, $digits): string | float | array
614 614
     {
615 615
         return MathTrig\Round::up($number, $digits);
616 616
     }
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
629 629
      *
630 630
      * @return array|float|string Rounded Number, or a string containing an error
631 631
      */
632
-    public static function ROUNDDOWN($number, $digits): string|float|array
632
+    public static function ROUNDDOWN($number, $digits): string | float | array
633 633
     {
634 634
         return MathTrig\Round::down($number, $digits);
635 635
     }
@@ -650,7 +650,7 @@  discard block
 block discarded – undo
650 650
      *
651 651
      * @return array|float|string The result, or a string containing an error
652 652
      */
653
-    public static function SERIESSUM($x, $n, $m, ...$args): string|float|int|array
653
+    public static function SERIESSUM($x, $n, $m, ...$args): string | float | int | array
654 654
     {
655 655
         return MathTrig\SeriesSum::evaluate($x, $n, $m, ...$args);
656 656
     }
@@ -669,7 +669,7 @@  discard block
 block discarded – undo
669 669
      *
670 670
      * @return array|int|string sign value, or a string containing an error
671 671
      */
672
-    public static function SIGN($number): string|int|array
672
+    public static function SIGN($number): string | int | array
673 673
     {
674 674
         return MathTrig\Sign::evaluate($number);
675 675
     }
@@ -699,7 +699,7 @@  discard block
 block discarded – undo
699 699
      *
700 700
      * @return array|float|string Square Root of Number * Pi, or a string containing an error
701 701
      */
702
-    public static function SQRTPI($number): string|float|array
702
+    public static function SQRTPI($number): string | float | array
703 703
     {
704 704
         return MathTrig\Sqrt::pi($number);
705 705
     }
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
      *
808 808
      * @return float|string The result, or a string containing an error
809 809
      */
810
-    public static function SUMPRODUCT(...$args): string|int|float
810
+    public static function SUMPRODUCT(...$args): string | int | float
811 811
     {
812 812
         return MathTrig\Sum::product(...$args);
813 813
     }
@@ -1077,7 +1077,7 @@  discard block
 block discarded – undo
1077 1077
      *
1078 1078
      * @return array|float|string Rounded number
1079 1079
      */
1080
-    public static function builtinROUND($number, $precision): string|float|array
1080
+    public static function builtinROUND($number, $precision): string | float | array
1081 1081
     {
1082 1082
         return MathTrig\Round::round($number, $precision);
1083 1083
     }
@@ -1095,7 +1095,7 @@  discard block
 block discarded – undo
1095 1095
      *
1096 1096
      * @return array|float|int|string Rounded number
1097 1097
      */
1098
-    public static function builtinABS($number): string|int|float|array
1098
+    public static function builtinABS($number): string | int | float | array
1099 1099
     {
1100 1100
         return MathTrig\Absolute::evaluate($number);
1101 1101
     }
@@ -1221,7 +1221,7 @@  discard block
 block discarded – undo
1221 1221
      *
1222 1222
      * @return array|float|string Rounded number
1223 1223
      */
1224
-    public static function builtinCOS($number): string|float|array
1224
+    public static function builtinCOS($number): string | float | array
1225 1225
     {
1226 1226
         return MathTrig\Trig\Cosine::cos($number);
1227 1227
     }
@@ -1239,7 +1239,7 @@  discard block
 block discarded – undo
1239 1239
      *
1240 1240
      * @return array|float|string Rounded number
1241 1241
      */
1242
-    public static function builtinCOSH($number): string|float|array
1242
+    public static function builtinCOSH($number): string | float | array
1243 1243
     {
1244 1244
         return MathTrig\Trig\Cosine::cosh($number);
1245 1245
     }
@@ -1257,7 +1257,7 @@  discard block
 block discarded – undo
1257 1257
      *
1258 1258
      * @return array|float|string Rounded number
1259 1259
      */
1260
-    public static function builtinDEGREES($number): string|float|array
1260
+    public static function builtinDEGREES($number): string | float | array
1261 1261
     {
1262 1262
         return MathTrig\Angle::toDegrees($number);
1263 1263
     }
@@ -1275,7 +1275,7 @@  discard block
 block discarded – undo
1275 1275
      *
1276 1276
      * @return array|float|string Rounded number
1277 1277
      */
1278
-    public static function builtinEXP($number): string|float|array
1278
+    public static function builtinEXP($number): string | float | array
1279 1279
     {
1280 1280
         return MathTrig\Exp::evaluate($number);
1281 1281
     }
@@ -1293,7 +1293,7 @@  discard block
 block discarded – undo
1293 1293
      *
1294 1294
      * @return array|float|string Rounded number
1295 1295
      */
1296
-    public static function builtinLN($number): string|float|array
1296
+    public static function builtinLN($number): string | float | array
1297 1297
     {
1298 1298
         return MathTrig\Logarithms::natural($number);
1299 1299
     }
@@ -1311,7 +1311,7 @@  discard block
 block discarded – undo
1311 1311
      *
1312 1312
      * @return array|float|string Rounded number
1313 1313
      */
1314
-    public static function builtinLOG10($number): string|float|array
1314
+    public static function builtinLOG10($number): string | float | array
1315 1315
     {
1316 1316
         return MathTrig\Logarithms::base10($number);
1317 1317
     }
@@ -1329,7 +1329,7 @@  discard block
 block discarded – undo
1329 1329
      *
1330 1330
      * @return array|float|string Rounded number
1331 1331
      */
1332
-    public static function builtinRADIANS($number): string|float|array
1332
+    public static function builtinRADIANS($number): string | float | array
1333 1333
     {
1334 1334
         return MathTrig\Angle::toRadians($number);
1335 1335
     }
@@ -1347,7 +1347,7 @@  discard block
 block discarded – undo
1347 1347
      *
1348 1348
      * @return array|float|string sine
1349 1349
      */
1350
-    public static function builtinSIN($number): string|float|array
1350
+    public static function builtinSIN($number): string | float | array
1351 1351
     {
1352 1352
         return MathTrig\Trig\Sine::sin($number);
1353 1353
     }
@@ -1365,7 +1365,7 @@  discard block
 block discarded – undo
1365 1365
      *
1366 1366
      * @return array|float|string Rounded number
1367 1367
      */
1368
-    public static function builtinSINH($number): string|float|array
1368
+    public static function builtinSINH($number): string | float | array
1369 1369
     {
1370 1370
         return MathTrig\Trig\Sine::sinh($number);
1371 1371
     }
@@ -1419,7 +1419,7 @@  discard block
 block discarded – undo
1419 1419
      *
1420 1420
      * @return array|float|string Rounded number
1421 1421
      */
1422
-    public static function builtinTANH($number): string|float|array
1422
+    public static function builtinTANH($number): string | float | array
1423 1423
     {
1424 1424
         return MathTrig\Trig\Tangent::tanh($number);
1425 1425
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Calculation.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3999,7 +3999,7 @@  discard block
 block discarded – undo
3999 3999
     /**
4000 4000
      * @return false|string False indicates an error
4001 4001
      */
4002
-    private function convertMatrixReferences(string $formula): false|string
4002
+    private function convertMatrixReferences(string $formula): false | string
4003 4003
     {
4004 4004
         static $matrixReplaceFrom = [self::FORMULA_OPEN_MATRIX_BRACE, ';', self::FORMULA_CLOSE_MATRIX_BRACE];
4005 4005
         static $matrixReplaceTo = ['MKMATRIX(MKMATRIX(', '),MKMATRIX(', '))'];
@@ -4102,7 +4102,7 @@  discard block
 block discarded – undo
4102 4102
      *
4103 4103
      * @return array<int, mixed>|false
4104 4104
      */
4105
-    private function internalParseFormula($formula, ?Cell $cell = null): bool|array
4105
+    private function internalParseFormula($formula, ?Cell $cell = null): bool | array
4106 4106
     {
4107 4107
         if (($formula = $this->convertMatrixReferences(trim($formula))) === false) {
4108 4108
             return false;
@@ -5251,7 +5251,7 @@  discard block
 block discarded – undo
5251 5251
      * @param mixed $operand1
5252 5252
      * @param mixed $operand2
5253 5253
      */
5254
-    private function executeArrayComparison($operand1, $operand2, string $operation, Stack &$stack, bool $recursingArrays): array
5254
+    private function executeArrayComparison($operand1, $operand2, string $operation, Stack & $stack, bool $recursingArrays): array
5255 5255
     {
5256 5256
         $result = [];
5257 5257
         if (!is_array($operand2)) {
@@ -5294,7 +5294,7 @@  discard block
 block discarded – undo
5294 5294
      * @param mixed $operand1
5295 5295
      * @param mixed $operand2
5296 5296
      */
5297
-    private function executeBinaryComparisonOperation($operand1, $operand2, string $operation, Stack &$stack, bool $recursingArrays = false): array|bool
5297
+    private function executeBinaryComparisonOperation($operand1, $operand2, string $operation, Stack & $stack, bool $recursingArrays = false): array | bool
5298 5298
     {
5299 5299
         //    If we're dealing with matrix operations, we want a matrix result
5300 5300
         if ((is_array($operand1)) || (is_array($operand2))) {
@@ -5524,7 +5524,7 @@  discard block
 block discarded – undo
5524 5524
      *
5525 5525
      * @return array|string Array of values in range if range contains more than one element. Otherwise, a single value is returned.
5526 5526
      */
5527
-    public function extractNamedRange(string &$range = 'A1', ?Worksheet $worksheet = null, bool $resetLog = true): string|array
5527
+    public function extractNamedRange(string &$range = 'A1', ?Worksheet $worksheet = null, bool $resetLog = true): string | array
5528 5528
     {
5529 5529
         // Return value
5530 5530
         $returnValue = [];
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($year, $basis = 0): string|int
27
+    public static function daysPerYear($year, $basis = 0): string | int
28 28
     {
29 29
         if (!is_numeric($basis)) {
30 30
             return ExcelError::NAN();
Please login to merge, or discard this patch.