Passed
Pull Request — master (#3834)
by Shinji
21:30
created
src/PhpSpreadsheet/Calculation/Engineering/Complex.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -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 COMPLEX(mixed $realNumber = 0.0, mixed $imaginary = 0.0, mixed $suffix = 'i'): array|string
35
+    public static function COMPLEX(mixed $realNumber = 0.0, mixed $imaginary = 0.0, mixed $suffix = 'i'): array | string
36 36
     {
37 37
         if (is_array($realNumber) || is_array($imaginary) || is_array($suffix)) {
38 38
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $realNumber, $imaginary, $suffix);
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
75 75
      *            with the same dimensions
76 76
      */
77
-    public static function IMAGINARY($complexNumber): array|string|float
77
+    public static function IMAGINARY($complexNumber): array | string | float
78 78
     {
79 79
         if (is_array($complexNumber)) {
80 80
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
105 105
      *            with the same dimensions
106 106
      */
107
-    public static function IMREAL($complexNumber): array|string|float
107
+    public static function IMREAL($complexNumber): array | string | float
108 108
     {
109 109
         if (is_array($complexNumber)) {
110 110
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/BesselI.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
36 36
      *            with the same dimensions
37 37
      */
38
-    public static function BESSELI(mixed $x, mixed $ord): array|string|float
38
+    public static function BESSELI(mixed $x, mixed $ord): array | string | float
39 39
     {
40 40
         if (is_array($x) || is_array($ord)) {
41 41
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $x, $ord);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering/BesselY.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      *         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 BESSELY(mixed $x, mixed $ord): array|string|float
34
+    public static function BESSELY(mixed $x, mixed $ord): array | string | float
35 35
     {
36 36
         if (is_array($x) || is_array($ord)) {
37 37
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $x, $ord);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      *
51 51
      * @param mixed $stringValue Value to check
52 52
      */
53
-    public static function TRIMSPACES(mixed $stringValue = ''): string|array
53
+    public static function TRIMSPACES(mixed $stringValue = ''): string | array
54 54
     {
55 55
         return TextData\Trim::spaces($stringValue);
56 56
     }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      *
67 67
      * @return array|int|string A string if arguments are invalid
68 68
      */
69
-    public static function ASCIICODE($characters): string|int|array
69
+    public static function ASCIICODE($characters): string | int | array
70 70
     {
71 71
         return TextData\CharacterConvert::code($characters);
72 72
     }
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      * @param array|string $value Value
172 172
      * @param array|int $chars Number of characters
173 173
      */
174
-    public static function LEFT($value = '', $chars = 1): string|array
174
+    public static function LEFT($value = '', $chars = 1): string | array
175 175
     {
176 176
         return TextData\Extract::left($value, $chars);
177 177
     }
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      * @param array|int $start Start character
188 188
      * @param array|int $chars Number of characters
189 189
      */
190
-    public static function MID($value = '', $start = 1, $chars = null): string|array
190
+    public static function MID($value = '', $start = 1, $chars = null): string | array
191 191
     {
192 192
         return TextData\Extract::mid($value, $start, $chars);
193 193
     }
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      * @param array|string $value Value
203 203
      * @param array|int $chars Number of characters
204 204
      */
205
-    public static function RIGHT($value = '', $chars = 1): string|array
205
+    public static function RIGHT($value = '', $chars = 1): string | array
206 206
     {
207 207
         return TextData\Extract::right($value, $chars);
208 208
     }
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      *
217 217
      * @param string $value Value
218 218
      */
219
-    public static function STRINGLENGTH($value = ''): int|array
219
+    public static function STRINGLENGTH($value = ''): int | array
220 220
     {
221 221
         return TextData\Text::length($value);
222 222
     }
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      *
233 233
      * @param array|string $mixedCaseString
234 234
      */
235
-    public static function LOWERCASE($mixedCaseString): string|array
235
+    public static function LOWERCASE($mixedCaseString): string | array
236 236
     {
237 237
         return TextData\CaseConvert::lower($mixedCaseString);
238 238
     }
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      *
249 249
      * @param string $mixedCaseString
250 250
      */
251
-    public static function UPPERCASE($mixedCaseString): string|array
251
+    public static function UPPERCASE($mixedCaseString): string | array
252 252
     {
253 253
         return TextData\CaseConvert::upper($mixedCaseString);
254 254
     }
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      *
265 265
      * @param array|string $mixedCaseString
266 266
      */
267
-    public static function PROPERCASE($mixedCaseString): string|array
267
+    public static function PROPERCASE($mixedCaseString): string | array
268 268
     {
269 269
         return TextData\CaseConvert::proper($mixedCaseString);
270 270
     }
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
      *
317 317
      * @param mixed $testValue Value to check
318 318
      */
319
-    public static function RETURNSTRING(mixed $testValue = ''): string|array
319
+    public static function RETURNSTRING(mixed $testValue = ''): string | array
320 320
     {
321 321
         return TextData\Text::test($testValue);
322 322
     }
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
      *      Use the exact() method in the TextData\Text class instead
382 382
      * @see TextData\Text::exact()
383 383
      */
384
-    public static function EXACT(mixed $value1, mixed $value2): bool|array
384
+    public static function EXACT(mixed $value1, mixed $value2): bool | array
385 385
     {
386 386
         return TextData\Text::exact($value1, $value2);
387 387
     }
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(mixed $row, mixed $column, $relativity = 1, $referenceStyle = true, $sheetText = ''): string|array
44
+    public static function cellAddress(mixed $row, mixed $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(mixed $lookupValue, mixed $lookupArray, mixed $matchType = 1): array|float|int|string
271
+    public static function MATCH(mixed $lookupValue, mixed $lookupArray, mixed $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/Logical/Operations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
      *         If an array of values is passed as an argument, then the returned result will also be an array
117 117
      *            with the same dimensions
118 118
      */
119
-    public static function NOT(mixed $logical = false): array|bool|string
119
+    public static function NOT(mixed $logical = false): array | bool | string
120 120
     {
121 121
         if (is_array($logical)) {
122 122
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $logical);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Web/Service.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      *
63 63
      * @return string the url encoded output
64 64
      */
65
-    public static function urlEncode(mixed $text): string|array
65
+    public static function urlEncode(mixed $text): string | array
66 66
     {
67 67
         if (!is_string($text)) {
68 68
             return ExcelError::VALUE();
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Averages/Mean.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      *
26 26
      * @return float|string
27 27
      */
28
-    public static function geometric(mixed ...$args): float|int|string
28
+    public static function geometric(mixed ...$args): float | int | string
29 29
     {
30 30
         $aArgs = Functions::flattenArray($args);
31 31
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      *
54 54
      * @return float|string
55 55
      */
56
-    public static function harmonic(mixed ...$args): string|float|int
56
+    public static function harmonic(mixed ...$args): string | float | int
57 57
     {
58 58
         // Loop through arguments
59 59
         $aArgs = Functions::flattenArray($args);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Distributions/Exponential.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      *         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 distribution(mixed $value, mixed $lambda, mixed $cumulative): array|string|float
31
+    public static function distribution(mixed $value, mixed $lambda, mixed $cumulative): array | string | float
32 32
     {
33 33
         if (is_array($value) || is_array($lambda) || is_array($cumulative)) {
34 34
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $lambda, $cumulative);
Please login to merge, or discard this patch.