Failed Conditions
Pull Request — master (#3693)
by Franck
13:36
created
src/PhpSpreadsheet/Calculation/Database.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * @TODO    The field argument is optional. If field is omitted, DCOUNT counts all records in the
75 75
      *            database that match the criteria.
76 76
      */
77
-    public static function DCOUNT($database, $field, $criteria): string|int
77
+    public static function DCOUNT($database, $field, $criteria): string | int
78 78
     {
79 79
         return Database\DCount::evaluate($database, $field, $criteria);
80 80
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      *                                        the column label in which you specify a condition for the
107 107
      *                                        column.
108 108
      */
109
-    public static function DCOUNTA($database, $field, $criteria): string|int
109
+    public static function DCOUNTA($database, $field, $criteria): string | int
110 110
     {
111 111
         return Database\DCountA::evaluate($database, $field, $criteria);
112 112
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/ConvertBinary.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
78 78
      *            with the same dimensions
79 79
      */
80
-    public static function toHex($value, $places = null): array|string
80
+    public static function toHex($value, $places = null): array | string
81 81
     {
82 82
         if (is_array($value) || is_array($places)) {
83 83
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
131 131
      *            with the same dimensions
132 132
      */
133
-    public static function toOctal($value, $places = null): array|string
133
+    public static function toOctal($value, $places = null): array | string
134 134
     {
135 135
         if (is_array($value) || is_array($places)) {
136 136
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/Compare.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
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
30 30
      *            with the same dimensions
31 31
      */
32
-    public static function DELTA($a, $b = 0.0): array|string|int
32
+    public static function DELTA($a, $b = 0.0): array | string | int
33 33
     {
34 34
         if (is_array($a) || is_array($b)) {
35 35
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $a, $b);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
65 65
      *            with the same dimensions
66 66
      */
67
-    public static function GESTEP($number, $step = 0.0): array|string|int
67
+    public static function GESTEP($number, $step = 0.0): array | string | int
68 68
     {
69 69
         if (is_array($number) || is_array($step)) {
70 70
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $step);
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
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
30 30
      *            with the same dimensions
31 31
      */
32
-    public static function IMDIV($complexDividend, $complexDivisor): array|string
32
+    public static function IMDIV($complexDividend, $complexDivisor): array | string
33 33
     {
34 34
         if (is_array($complexDividend) || is_array($complexDivisor)) {
35 35
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $complexDividend, $complexDivisor);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
60 60
      *            with the same dimensions
61 61
      */
62
-    public static function IMSUB($complexNumber1, $complexNumber2): array|string
62
+    public static function IMSUB($complexNumber1, $complexNumber2): array | string
63 63
     {
64 64
         if (is_array($complexNumber1) || is_array($complexNumber2)) {
65 65
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $complexNumber1, $complexNumber2);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/BitWise.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
42 42
      *            with the same dimensions
43 43
      */
44
-    public static function BITAND($number1, $number2): array|string|int
44
+    public static function BITAND($number1, $number2): array | string | int
45 45
     {
46 46
         if (is_array($number1) || is_array($number2)) {
47 47
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number1, $number2);
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
77 77
      *            with the same dimensions
78 78
      */
79
-    public static function BITOR($number1, $number2): array|string|int
79
+    public static function BITOR($number1, $number2): array | string | int
80 80
     {
81 81
         if (is_array($number1) || is_array($number2)) {
82 82
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number1, $number2);
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
113 113
      *            with the same dimensions
114 114
      */
115
-    public static function BITXOR($number1, $number2): array|string|int
115
+    public static function BITXOR($number1, $number2): array | string | int
116 116
     {
117 117
         if (is_array($number1) || is_array($number2)) {
118 118
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number1, $number2);
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
149 149
      *            with the same dimensions
150 150
      */
151
-    public static function BITLSHIFT($number, $shiftAmount): array|string|float
151
+    public static function BITLSHIFT($number, $shiftAmount): array | string | float
152 152
     {
153 153
         if (is_array($number) || is_array($shiftAmount)) {
154 154
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $shiftAmount);
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
187 187
      *            with the same dimensions
188 188
      */
189
-    public static function BITRSHIFT($number, $shiftAmount): array|string|float
189
+    public static function BITRSHIFT($number, $shiftAmount): array | string | float
190 190
     {
191 191
         if (is_array($number) || is_array($shiftAmount)) {
192 192
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $shiftAmount);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/ErfC.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      *
53 53
      * @return float
54 54
      */
55
-    private static function erfcValue($value): float|int
55
+    private static function erfcValue($value): float | int
56 56
     {
57 57
         $value = (float) $value;
58 58
         if (abs($value) < 2.2) {
Please login to merge, or discard this patch.
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.