Passed
Pull Request — master (#3743)
by Adrien
15:10
created
src/PhpSpreadsheet/Calculation/Statistical.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      * @param float $alpha Parameter to the distribution
124 124
      * @param float $beta Parameter to the distribution
125 125
      */
126
-    public static function BETADIST($value, $alpha, $beta, mixed $rMin = 0, mixed $rMax = 1): string|float|array
126
+    public static function BETADIST($value, $alpha, $beta, mixed $rMin = 0, mixed $rMax = 1): string | float | array
127 127
     {
128 128
         return Statistical\Distributions\Beta::distribution($value, $alpha, $beta, $rMin, $rMax);
129 129
     }
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
      *
535 535
      * @return array|float|string The result, or a string containing an error
536 536
      */
537
-    public static function GAMMAFunction($value): string|float|array
537
+    public static function GAMMAFunction($value): string | float | array
538 538
     {
539 539
         return Statistical\Distributions\Gamma::gamma($value);
540 540
     }
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
      *
592 592
      * @param float $value
593 593
      */
594
-    public static function GAMMALN($value): string|float|array
594
+    public static function GAMMALN($value): string | float | array
595 595
     {
596 596
         return Statistical\Distributions\Gamma::ln($value);
597 597
     }
@@ -787,7 +787,7 @@  discard block
 block discarded – undo
787 787
      *
788 788
      * @return array|string The result, or a string containing an error
789 789
      */
790
-    public static function LINEST(array $yValues, $xValues = null, $const = true, $stats = false): string|array
790
+    public static function LINEST(array $yValues, $xValues = null, $const = true, $stats = false): string | array
791 791
     {
792 792
         return Trends::LINEST($yValues, $xValues, $const, $stats);
793 793
     }
@@ -809,7 +809,7 @@  discard block
 block discarded – undo
809 809
      *
810 810
      * @return array|string The result, or a string containing an error
811 811
      */
812
-    public static function LOGEST(array $yValues, $xValues = null, $const = true, $stats = false): string|array
812
+    public static function LOGEST(array $yValues, $xValues = null, $const = true, $stats = false): string | array
813 813
     {
814 814
         return Trends::LOGEST($yValues, $xValues, $const, $stats);
815 815
     }
@@ -833,7 +833,7 @@  discard block
 block discarded – undo
833 833
      *            accuracy if I can get my head round the mathematics
834 834
      *            (as described at) http://home.online.no/~pjacklam/notes/invnorm/
835 835
      */
836
-    public static function LOGINV($probability, $mean, $stdDev): string|float|array
836
+    public static function LOGINV($probability, $mean, $stdDev): string | float | array
837 837
     {
838 838
         return Statistical\Distributions\LogNormal::inverse($probability, $mean, $stdDev);
839 839
     }
@@ -1206,7 +1206,7 @@  discard block
 block discarded – undo
1206 1206
      *
1207 1207
      * @return float|string (string if result is an error)
1208 1208
      */
1209
-    public static function PERCENTRANK(mixed $valueSet, mixed $value, mixed $significance = 3): string|float
1209
+    public static function PERCENTRANK(mixed $valueSet, mixed $value, mixed $significance = 3): string | float
1210 1210
     {
1211 1211
         return Statistical\Percentiles::PERCENTRANK($valueSet, $value, $significance);
1212 1212
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Information/ExcelError.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      *
52 52
      * @param mixed $value Value to check
53 53
      */
54
-    public static function type(mixed $value = ''): array|int|string
54
+    public static function type(mixed $value = ''): array | int | string
55 55
     {
56 56
         if (is_array($value)) {
57 57
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Information/Value.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 numbers is passed as an argument, then the returned result will also be an array
25 25
      *            with the same dimensions
26 26
      */
27
-    public static function isBlank(mixed $value = null): array|bool
27
+    public static function isBlank(mixed $value = null): array | bool
28 28
     {
29 29
         if (is_array($value)) {
30 30
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -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 isEven(mixed $value = null): array|string|bool
76
+    public static function isEven(mixed $value = null): array | string | bool
77 77
     {
78 78
         if (is_array($value)) {
79 79
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
99 99
      *            with the same dimensions
100 100
      */
101
-    public static function isOdd(mixed $value = null): array|string|bool
101
+    public static function isOdd(mixed $value = null): array | string | bool
102 102
     {
103 103
         if (is_array($value)) {
104 104
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
124 124
      *            with the same dimensions
125 125
      */
126
-    public static function isNumber(mixed $value = null): array|bool
126
+    public static function isNumber(mixed $value = null): array | bool
127 127
     {
128 128
         if (is_array($value)) {
129 129
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      *         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 isLogical(mixed $value = null): array|bool
149
+    public static function isLogical(mixed $value = null): array | bool
150 150
     {
151 151
         if (is_array($value)) {
152 152
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
166 166
      *            with the same dimensions
167 167
      */
168
-    public static function isText(mixed $value = null): array|bool
168
+    public static function isText(mixed $value = null): array | bool
169 169
     {
170 170
         if (is_array($value)) {
171 171
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
185 185
      *            with the same dimensions
186 186
      */
187
-    public static function isNonText(mixed $value = null): array|bool
187
+    public static function isNonText(mixed $value = null): array | bool
188 188
     {
189 189
         if (is_array($value)) {
190 190
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Information/ErrorValue.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
19 19
      *            with the same dimensions
20 20
      */
21
-    public static function isErr(mixed $value = ''): array|bool
21
+    public static function isErr(mixed $value = ''): array | bool
22 22
     {
23 23
         if (is_array($value)) {
24 24
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
38 38
      *            with the same dimensions
39 39
      */
40
-    public static function isError(mixed $value = ''): array|bool
40
+    public static function isError(mixed $value = ''): array | bool
41 41
     {
42 42
         if (is_array($value)) {
43 43
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
61 61
      *            with the same dimensions
62 62
      */
63
-    public static function isNa(mixed $value = ''): array|bool
63
+    public static function isNa(mixed $value = ''): array | bool
64 64
     {
65 65
         if (is_array($value)) {
66 66
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/CharacterConvert.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      *         If an array of values is passed as the argument, then the returned result will also be an array
21 21
      *            with the same dimensions
22 22
      */
23
-    public static function character(mixed $character): array|string
23
+    public static function character(mixed $character): array | string
24 24
     {
25 25
         if (is_array($character)) {
26 26
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $character);
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      *         If an array of values is passed as the argument, then the returned result will also be an array
47 47
      *            with the same dimensions
48 48
      */
49
-    public static function code(mixed $characters): array|string|int
49
+    public static function code(mixed $characters): array | string | int
50 50
     {
51 51
         if (is_array($characters)) {
52 52
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $characters);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/Trim.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      *         If an array of values is passed as the argument, then the returned result will also be an array
40 40
      *            with the same dimensions
41 41
      */
42
-    public static function spaces(mixed $stringValue = ''): array|string
42
+    public static function spaces(mixed $stringValue = ''): array | string
43 43
     {
44 44
         if (is_array($stringValue)) {
45 45
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $stringValue);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/Text.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      *         If an array of values is passed for the argument, then the returned result
22 22
      *            will also be an array with matching dimensions
23 23
      */
24
-    public static function length(mixed $value = ''): array|int
24
+    public static function length(mixed $value = ''): array | int
25 25
     {
26 26
         if (is_array($value)) {
27 27
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      *         If an array of values is passed for either of the arguments, then the returned result
47 47
      *            will also be an array with matching dimensions
48 48
      */
49
-    public static function exact(mixed $value1, mixed $value2): array|bool
49
+    public static function exact(mixed $value1, mixed $value2): array | bool
50 50
     {
51 51
         if (is_array($value1) || is_array($value2)) {
52 52
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value1, $value2);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      *         If an array of values is passed for the argument, then the returned result
69 69
      *            will also be an array with matching dimensions
70 70
      */
71
-    public static function test(mixed $testValue = ''): array|string
71
+    public static function test(mixed $testValue = ''): array | string
72 72
     {
73 73
         if (is_array($testValue)) {
74 74
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $testValue);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/Format.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      *         If an array of values is passed for either of the arguments, then the returned result
79 79
      *            will also be an array with matching dimensions
80 80
      */
81
-    public static function FIXEDFORMAT(mixed $value, mixed $decimals = 2, mixed $noCommas = false): array|string
81
+    public static function FIXEDFORMAT(mixed $value, mixed $decimals = 2, mixed $noCommas = false): array | string
82 82
     {
83 83
         if (is_array($value) || is_array($decimals) || is_array($noCommas)) {
84 84
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $decimals, $noCommas);
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      *         If an array of values is passed for either of the arguments, then the returned result
120 120
      *            will also be an array with matching dimensions
121 121
      */
122
-    public static function TEXTFORMAT(mixed $value, mixed $format): array|string
122
+    public static function TEXTFORMAT(mixed $value, mixed $format): array | string
123 123
     {
124 124
         if (is_array($value) || is_array($format)) {
125 125
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $format);
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      *         If an array of values is passed for either of the arguments, then the returned result
230 230
      *            will also be an array with matching dimensions
231 231
      */
232
-    public static function valueToText(mixed $value, mixed $format = false): array|string
232
+    public static function valueToText(mixed $value, mixed $format = false): array | string
233 233
     {
234 234
         if (is_array($value) || is_array($format)) {
235 235
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $format);
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
      * @param mixed $groupSeparator A string with the group/thousands separator to use, defaults to locale defined value
271 271
      *                         Or can be an array of values
272 272
      */
273
-    public static function NUMBERVALUE(mixed $value = '', mixed $decimalSeparator = null, mixed $groupSeparator = null): array|string|float
273
+    public static function NUMBERVALUE(mixed $value = '', mixed $decimalSeparator = null, mixed $groupSeparator = null): array | string | float
274 274
     {
275 275
         if (is_array($value) || is_array($decimalSeparator) || is_array($groupSeparator)) {
276 276
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $decimalSeparator, $groupSeparator);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData/Search.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
      *         If an array of values is passed for the $value or $chars arguments, then the returned result
26 26
      *            will also be an array with matching dimensions
27 27
      */
28
-    public static function sensitive(mixed $needle, mixed $haystack, mixed $offset = 1): array|string|int
28
+    public static function sensitive(mixed $needle, mixed $haystack, mixed $offset = 1): array | string | int
29 29
     {
30 30
         if (is_array($needle) || is_array($haystack) || is_array($offset)) {
31 31
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $needle, $haystack, $offset);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      *         If an array of values is passed for the $value or $chars arguments, then the returned result
68 68
      *            will also be an array with matching dimensions
69 69
      */
70
-    public static function insensitive(mixed $needle, mixed $haystack, mixed $offset = 1): array|string|int
70
+    public static function insensitive(mixed $needle, mixed $haystack, mixed $offset = 1): array | string | int
71 71
     {
72 72
         if (is_array($needle) || is_array($haystack) || is_array($offset)) {
73 73
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $needle, $haystack, $offset);
Please login to merge, or discard this patch.