Passed
Pull Request — master (#3718)
by Adrien
12:54
created
Category
src/PhpSpreadsheet/Calculation/Statistical/Standardize.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
27 27
      *            with the same dimensions
28 28
      */
29
-    public static function execute($value, $mean, $stdDev): array|string|float
29
+    public static function execute($value, $mean, $stdDev): array | string | float
30 30
     {
31 31
         if (is_array($value) || is_array($mean) || is_array($stdDev)) {
32 32
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $mean, $stdDev);
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(...$args): float|string
22
+    public static function VAR(...$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(...$args): string|float
64
+    public static function VARA(...$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(...$args): float|string
110
+    public static function VARP(...$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(...$args): string|float
153
+    public static function VARPA(...$args): string | float
154 154
     {
155 155
         $returnValue = ExcelError::DIV0();
156 156
 
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(...$args): float|int|string
28
+    public static function geometric(...$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(...$args): string|float|int
56
+    public static function harmonic(...$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/Conditional.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
      * @param mixed[] $range Data values
84 84
      * @param string $condition the criteria that defines which cells will be counted
85 85
      */
86
-    public static function COUNTIF($range, $condition): string|int
86
+    public static function COUNTIF($range, $condition): string | int
87 87
     {
88 88
         // Filter out any empty values that shouldn't be included in a COUNT
89 89
         $range = array_filter(
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(...$args): string|float
23
+    public static function averageDeviations(...$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(...$args): string|int|float
72
+    public static function average(...$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(...$args): string|int|float
111
+    public static function averageA(...$args): string | int | float
112 112
     {
113 113
         $returnValue = null;
114 114
 
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($value, $lambda, $cumulative): array|string|float
31
+    public static function distribution($value, $lambda, $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.
src/PhpSpreadsheet/Calculation/Statistical/Distributions/Binomial.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
84 84
      *            with the same dimensions
85 85
      */
86
-    public static function range($trials, $probability, $successes, $limit = null): array|string|float|int
86
+    public static function range($trials, $probability, $successes, $limit = null): array | string | float | int
87 87
     {
88 88
         if (is_array($trials) || is_array($probability) || is_array($successes) || is_array($limit)) {
89 89
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $trials, $probability, $successes, $limit);
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      * TODO Add support for the cumulative flag not present for NEGBINOMDIST, but introduced for NEGBINOM.DIST
142 142
      *      The cumulative default should be false to reflect the behaviour of NEGBINOMDIST
143 143
      */
144
-    public static function negative($failures, $successes, $probability): array|string|float
144
+    public static function negative($failures, $successes, $probability): array | string | float
145 145
     {
146 146
         if (is_array($failures) || is_array($successes) || is_array($probability)) {
147 147
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $failures, $successes, $probability);
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
188 188
      *            with the same dimensions
189 189
      */
190
-    public static function inverse($trials, $probability, $alpha): array|string|int
190
+    public static function inverse($trials, $probability, $alpha): array | string | int
191 191
     {
192 192
         if (is_array($trials) || is_array($probability) || is_array($alpha)) {
193 193
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $trials, $probability, $alpha);
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         return $successes;
220 220
     }
221 221
 
222
-    private static function calculateCumulativeBinomial(int $value, int $trials, float $probability): float|int
222
+    private static function calculateCumulativeBinomial(int $value, int $trials, float $probability): float | int
223 223
     {
224 224
         $summer = 0;
225 225
         for ($i = 0; $i <= $value; ++$i) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Distributions/ChiSquared.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
28 28
      *            with the same dimensions
29 29
      */
30
-    public static function distributionRightTail($value, $degrees): array|string|int|float
30
+    public static function distributionRightTail($value, $degrees): array | string | int | float
31 31
     {
32 32
         if (is_array($value) || is_array($degrees)) {
33 33
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $degrees);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
71 71
      *            with the same dimensions
72 72
      */
73
-    public static function distributionLeftTail($value, $degrees, $cumulative): array|string|int|float
73
+    public static function distributionLeftTail($value, $degrees, $cumulative): array | string | int | float
74 74
     {
75 75
         if (is_array($value) || is_array($degrees) || is_array($cumulative)) {
76 76
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $degrees, $cumulative);
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
161 161
      *            with the same dimensions
162 162
      */
163
-    public static function inverseLeftTail($probability, $degrees): array|string|float
163
+    public static function inverseLeftTail($probability, $degrees): array | string | float
164 164
     {
165 165
         if (is_array($probability) || is_array($degrees)) {
166 166
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $probability, $degrees);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Distributions/Normal.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
34 34
      *            with the same dimensions
35 35
      */
36
-    public static function distribution($value, $mean, $stdDev, $cumulative): array|string|float
36
+    public static function distribution($value, $mean, $stdDev, $cumulative): array | string | float
37 37
     {
38 38
         if (is_array($value) || is_array($mean) || is_array($stdDev) || is_array($cumulative)) {
39 39
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $mean, $stdDev, $cumulative);
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
76 76
      *            with the same dimensions
77 77
      */
78
-    public static function inverse($probability, $mean, $stdDev): array|string|float
78
+    public static function inverse($probability, $mean, $stdDev): array | string | float
79 79
     {
80 80
         if (is_array($probability) || is_array($mean) || is_array($stdDev)) {
81 81
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $probability, $mean, $stdDev);
Please login to merge, or discard this patch.