Passed
Pull Request — master (#3834)
by Shinji
21:30
created
src/PhpSpreadsheet/Calculation/Statistical/Percentiles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
      *
75 75
      * @return float|string (string if result is an error)
76 76
      */
77
-    public static function PERCENTRANK(mixed $valueSet, mixed $value, mixed $significance = 3): string|float
77
+    public static function PERCENTRANK(mixed $valueSet, mixed $value, mixed $significance = 3): string | float
78 78
     {
79 79
         $valueSet = Functions::flattenArray($valueSet);
80 80
         $value = Functions::flattenSingleValue($value);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Deviations.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      *
18 18
      * @param mixed ...$args Data values
19 19
      */
20
-    public static function sumSquares(mixed ...$args): string|float
20
+    public static function sumSquares(mixed ...$args): string | float
21 21
     {
22 22
         $aArgs = Functions::flattenArrayIndexed($args);
23 23
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      *
60 60
      * @return float|string
61 61
      */
62
-    public static function kurtosis(...$args): string|int|float
62
+    public static function kurtosis(...$args): string | int | float
63 63
     {
64 64
         $aArgs = Functions::flattenArrayIndexed($args);
65 65
         $mean = Averages::average($aArgs);
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      *
105 105
      * @return float|int|string The result, or a string containing an error
106 106
      */
107
-    public static function skew(...$args): string|int|float
107
+    public static function skew(...$args): string | int | float
108 108
     {
109 109
         $aArgs = Functions::flattenArrayIndexed($args);
110 110
         $mean = Averages::average($aArgs);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Averages.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      *
21 21
      * @return float|string (string if result is an error)
22 22
      */
23
-    public static function averageDeviations(mixed ...$args): string|float
23
+    public static function averageDeviations(mixed ...$args): string | float
24 24
     {
25 25
         $aArgs = Functions::flattenArrayIndexed($args);
26 26
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      *
70 70
      * @return float|string (string if result is an error)
71 71
      */
72
-    public static function average(mixed ...$args): string|int|float
72
+    public static function average(mixed ...$args): string | int | float
73 73
     {
74 74
         $returnValue = $aCount = 0;
75 75
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      *
109 109
      * @return float|string (string if result is an error)
110 110
      */
111
-    public static function averageA(mixed ...$args): string|int|float
111
+    public static function averageA(mixed ...$args): string | int | float
112 112
     {
113 113
         $returnValue = null;
114 114
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Trends.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      *
213 213
      * @return array|string The result, or a string containing an error
214 214
      */
215
-    public static function LINEST(array $yValues, $xValues = null, mixed $const = true, mixed $stats = false): string|array
215
+    public static function LINEST(array $yValues, $xValues = null, mixed $const = true, mixed $stats = false): string | array
216 216
     {
217 217
         $const = ($const === null) ? true : (bool) Functions::flattenSingleValue($const);
218 218
         $stats = ($stats === null) ? false : (bool) Functions::flattenSingleValue($stats);
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      *
274 274
      * @return array|string The result, or a string containing an error
275 275
      */
276
-    public static function LOGEST(array $yValues, $xValues = null, mixed $const = true, mixed $stats = false): string|array
276
+    public static function LOGEST(array $yValues, $xValues = null, mixed $const = true, mixed $stats = false): string | array
277 277
     {
278 278
         $const = ($const === null) ? true : (bool) Functions::flattenSingleValue($const);
279 279
         $stats = ($stats === null) ? false : (bool) Functions::flattenSingleValue($stats);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Variances.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      *
20 20
      * @return float|string (string if result is an error)
21 21
      */
22
-    public static function VAR(mixed ...$args): float|string
22
+    public static function VAR(mixed ...$args): float | string
23 23
     {
24 24
         $returnValue = ExcelError::DIV0();
25 25
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      *
62 62
      * @return float|string (string if result is an error)
63 63
      */
64
-    public static function VARA(mixed ...$args): string|float
64
+    public static function VARA(mixed ...$args): string | float
65 65
     {
66 66
         $returnValue = ExcelError::DIV0();
67 67
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      *
108 108
      * @return float|string (string if result is an error)
109 109
      */
110
-    public static function VARP(mixed ...$args): float|string
110
+    public static function VARP(mixed ...$args): float | string
111 111
     {
112 112
         // Return value
113 113
         $returnValue = ExcelError::DIV0();
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      *
151 151
      * @return float|string (string if result is an error)
152 152
      */
153
-    public static function VARPA(mixed ...$args): string|float
153
+    public static function VARPA(mixed ...$args): string | float
154 154
     {
155 155
         $returnValue = ExcelError::DIV0();
156 156
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/NetworkDays.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      *         If an array of values is passed for the $startDate or $endDate arguments, then the returned result
34 34
      *            will also be an array with matching dimensions
35 35
      */
36
-    public static function count(mixed $startDate, mixed $endDate, mixed ...$dateArgs): array|string|int
36
+    public static function count(mixed $startDate, mixed $endDate, mixed ...$dateArgs): array | string | int
37 37
     {
38 38
         if (is_array($startDate) || is_array($endDate)) {
39 39
             return self::evaluateArrayArgumentsSubset(
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/Week.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      *         If an array of values is passed as the argument, then the returned result will also be an array
46 46
      *            with the same dimensions
47 47
      */
48
-    public static function number(mixed $dateValue, $method = Constants::STARTWEEK_SUNDAY): array|int|string
48
+    public static function number(mixed $dateValue, $method = Constants::STARTWEEK_SUNDAY): array | int | string
49 49
     {
50 50
         if (is_array($dateValue) || is_array($method)) {
51 51
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $dateValue, $method);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
106 106
      *            with the same dimensions
107 107
      */
108
-    public static function isoWeekNumber(mixed $dateValue): array|int|string
108
+    public static function isoWeekNumber(mixed $dateValue): array | int | string
109 109
     {
110 110
         if (is_array($dateValue)) {
111 111
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $dateValue);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      *         If an array of values is passed as the argument, then the returned result will also be an array
151 151
      *            with the same dimensions
152 152
      */
153
-    public static function day($dateValue, mixed $style = 1): array|string|int
153
+    public static function day($dateValue, mixed $style = 1): array | string | int
154 154
     {
155 155
         if (is_array($dateValue) || is_array($style)) {
156 156
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $dateValue, $style);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/YearFrac.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 values is passed for the $startDate or $endDays,arguments, then the returned result
44 44
      *            will also be an array with matching dimensions
45 45
      */
46
-    public static function fraction(mixed $startDate, mixed $endDate, $method = 0): array|string|int|float
46
+    public static function fraction(mixed $startDate, mixed $endDate, $method = 0): array | string | int | float
47 47
     {
48 48
         if (is_array($startDate) || is_array($endDate) || is_array($method)) {
49 49
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $startDate, $endDate, $method);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTimeExcel/DateParts.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
29 29
      *            with the same dimensions
30 30
      */
31
-    public static function day(mixed $dateValue): array|int|string
31
+    public static function day(mixed $dateValue): array | int | string
32 32
     {
33 33
         if (is_array($dateValue)) {
34 34
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $dateValue);
@@ -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 month(mixed $dateValue): array|string|int
72
+    public static function month(mixed $dateValue): array | string | int
73 73
     {
74 74
         if (is_array($dateValue)) {
75 75
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $dateValue);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      *         If an array of numbers is passed as the argument, then the returned result will also be an array
109 109
      *            with the same dimensions
110 110
      */
111
-    public static function year(mixed $dateValue): array|string|int
111
+    public static function year(mixed $dateValue): array | string | int
112 112
     {
113 113
         if (is_array($dateValue)) {
114 114
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $dateValue);
Please login to merge, or discard this patch.