Passed
Pull Request — master (#3834)
by Shinji
21:30
created
src/PhpSpreadsheet/Calculation/Engineering/ConvertHex.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
39 39
      *            with the same dimensions
40 40
      */
41
-    public static function toBinary($value, $places = null): array|string
41
+    public static function toBinary($value, $places = null): array | string
42 42
     {
43 43
         if (is_array($value) || is_array($places)) {
44 44
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
146 146
      *            with the same dimensions
147 147
      */
148
-    public static function toOctal($value, $places = null): array|string
148
+    public static function toOctal($value, $places = null): array | string
149 149
     {
150 150
         if (is_array($value) || is_array($places)) {
151 151
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/ComplexFunctions.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
92 92
      *            with the same dimensions
93 93
      */
94
-    public static function IMCONJUGATE($complexNumber): array|string
94
+    public static function IMCONJUGATE($complexNumber): array | string
95 95
     {
96 96
         if (is_array($complexNumber)) {
97 97
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
122 122
      *            with the same dimensions
123 123
      */
124
-    public static function IMCOS($complexNumber): array|string
124
+    public static function IMCOS($complexNumber): array | string
125 125
     {
126 126
         if (is_array($complexNumber)) {
127 127
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
152 152
      *            with the same dimensions
153 153
      */
154
-    public static function IMCOSH($complexNumber): array|string
154
+    public static function IMCOSH($complexNumber): array | string
155 155
     {
156 156
         if (is_array($complexNumber)) {
157 157
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
182 182
      *            with the same dimensions
183 183
      */
184
-    public static function IMCOT($complexNumber): array|string
184
+    public static function IMCOT($complexNumber): array | string
185 185
     {
186 186
         if (is_array($complexNumber)) {
187 187
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
212 212
      *            with the same dimensions
213 213
      */
214
-    public static function IMCSC($complexNumber): array|string
214
+    public static function IMCSC($complexNumber): array | string
215 215
     {
216 216
         if (is_array($complexNumber)) {
217 217
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
242 242
      *            with the same dimensions
243 243
      */
244
-    public static function IMCSCH($complexNumber): array|string
244
+    public static function IMCSCH($complexNumber): array | string
245 245
     {
246 246
         if (is_array($complexNumber)) {
247 247
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
272 272
      *            with the same dimensions
273 273
      */
274
-    public static function IMSIN($complexNumber): array|string
274
+    public static function IMSIN($complexNumber): array | string
275 275
     {
276 276
         if (is_array($complexNumber)) {
277 277
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
302 302
      *            with the same dimensions
303 303
      */
304
-    public static function IMSINH($complexNumber): array|string
304
+    public static function IMSINH($complexNumber): array | string
305 305
     {
306 306
         if (is_array($complexNumber)) {
307 307
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
332 332
      *            with the same dimensions
333 333
      */
334
-    public static function IMSEC($complexNumber): array|string
334
+    public static function IMSEC($complexNumber): array | string
335 335
     {
336 336
         if (is_array($complexNumber)) {
337 337
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
362 362
      *            with the same dimensions
363 363
      */
364
-    public static function IMSECH($complexNumber): array|string
364
+    public static function IMSECH($complexNumber): array | string
365 365
     {
366 366
         if (is_array($complexNumber)) {
367 367
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
392 392
      *            with the same dimensions
393 393
      */
394
-    public static function IMTAN($complexNumber): array|string
394
+    public static function IMTAN($complexNumber): array | string
395 395
     {
396 396
         if (is_array($complexNumber)) {
397 397
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
422 422
      *            with the same dimensions
423 423
      */
424
-    public static function IMSQRT($complexNumber): array|string
424
+    public static function IMSQRT($complexNumber): array | string
425 425
     {
426 426
         if (is_array($complexNumber)) {
427 427
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
457 457
      *            with the same dimensions
458 458
      */
459
-    public static function IMLN($complexNumber): array|string
459
+    public static function IMLN($complexNumber): array | string
460 460
     {
461 461
         if (is_array($complexNumber)) {
462 462
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
491 491
      *            with the same dimensions
492 492
      */
493
-    public static function IMLOG10($complexNumber): array|string
493
+    public static function IMLOG10($complexNumber): array | string
494 494
     {
495 495
         if (is_array($complexNumber)) {
496 496
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
525 525
      *            with the same dimensions
526 526
      */
527
-    public static function IMLOG2($complexNumber): array|string
527
+    public static function IMLOG2($complexNumber): array | string
528 528
     {
529 529
         if (is_array($complexNumber)) {
530 530
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
559 559
      *            with the same dimensions
560 560
      */
561
-    public static function IMEXP($complexNumber): array|string
561
+    public static function IMEXP($complexNumber): array | string
562 562
     {
563 563
         if (is_array($complexNumber)) {
564 564
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
591 591
      *            with the same dimensions
592 592
      */
593
-    public static function IMPOWER($complexNumber, $realNumber): array|string
593
+    public static function IMPOWER($complexNumber, $realNumber): array | string
594 594
     {
595 595
         if (is_array($complexNumber) || is_array($realNumber)) {
596 596
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $complexNumber, $realNumber);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/ConvertOctal.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
45 45
      *            with the same dimensions
46 46
      */
47
-    public static function toBinary($value, $places = null): array|string
47
+    public static function toBinary($value, $places = null): array | string
48 48
     {
49 49
         if (is_array($value) || is_array($places)) {
50 50
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
143 143
      *            with the same dimensions
144 144
      */
145
-    public static function toHex($value, $places = null): array|string
145
+    public static function toHex($value, $places = null): array | string
146 146
     {
147 147
         if (is_array($value) || is_array($places)) {
148 148
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/LookupRef/RowColumnInformation.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
      * @return int|int[]
44 44
      */
45
-    public static function COLUMN($cellAddress = null, ?Cell $cell = null): int|array
45
+    public static function COLUMN($cellAddress = null, ?Cell $cell = null): int | array
46 46
     {
47 47
         if (self::cellAddressNullOrWhitespace($cellAddress)) {
48 48
             return self::cellColumn($cell);
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      *
138 138
      * @return int|mixed[]
139 139
      */
140
-    public static function ROW($cellAddress = null, ?Cell $cell = null): int|array
140
+    public static function ROW($cellAddress = null, ?Cell $cell = null): int | array
141 141
     {
142 142
         if (self::cellAddressNullOrWhitespace($cellAddress)) {
143 143
             return self::cellRow($cell);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/Time.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
44 44
      *            with the same dimensions
45 45
      */
46
-    public static function fromHMS($hour, $minute, $second): array|string|float|int|DateTime
46
+    public static function fromHMS($hour, $minute, $second): array | string | float | int | DateTime
47 47
     {
48 48
         if (is_array($hour) || is_array($minute) || is_array($second)) {
49 49
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $hour, $minute, $second);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/TimeValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
37 37
      *            with the same dimensions
38 38
      */
39
-    public static function fromString($timeValue): array|string|Datetime|int|float
39
+    public static function fromString($timeValue): array | string | Datetime | int | float
40 40
     {
41 41
         if (is_array($timeValue)) {
42 42
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $timeValue);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/Trig/Cotangent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
74 74
      *            with the same dimensions
75 75
      */
76
-    public static function acot($number): array|string|float
76
+    public static function acot($number): array | string | float
77 77
     {
78 78
         if (is_array($number)) {
79 79
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig/IntClass.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
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
22 22
      *            with the same dimensions
23 23
      */
24
-    public static function evaluate($number): array|string|int
24
+    public static function evaluate($number): array | string | int
25 25
     {
26 26
         if (is_array($number)) {
27 27
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number);
Please login to merge, or discard this patch.
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.