Passed
Pull Request — master (#3834)
by Shinji
21:30
created
src/PhpSpreadsheet/Calculation/Statistical/Distributions/LogNormal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
      *            accuracy if I can get my head round the mathematics
115 115
      *            (as described at) http://home.online.no/~pjacklam/notes/invnorm/
116 116
      */
117
-    public static function inverse(mixed $probability, mixed $mean, mixed $stdDev): array|string|float
117
+    public static function inverse(mixed $probability, mixed $mean, mixed $stdDev): array | string | float
118 118
     {
119 119
         if (is_array($probability) || is_array($mean) || is_array($stdDev)) {
120 120
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $probability, $mean, $stdDev);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Distributions/Poisson.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 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 distribution(mixed $value, mixed $mean, mixed $cumulative): array|string|float
32
+    public static function distribution(mixed $value, mixed $mean, mixed $cumulative): array | string | float
33 33
     {
34 34
         if (is_array($value) || is_array($mean) || is_array($cumulative)) {
35 35
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $mean, $cumulative);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Distributions/Fisher.php 1 patch
Spacing   +2 added lines, -2 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 distribution(mixed $value): array|string|float
27
+    public static function distribution(mixed $value): array | string | float
28 28
     {
29 29
         if (is_array($value)) {
30 30
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
58 58
      *            with the same dimensions
59 59
      */
60
-    public static function inverse(mixed $probability): array|string|float
60
+    public static function inverse(mixed $probability): array | string | float
61 61
     {
62 62
         if (is_array($probability)) {
63 63
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $probability);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Distributions/StandardNormal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
95 95
      *            with the same dimensions
96 96
      */
97
-    public static function gauss(mixed $value): array|string|float
97
+    public static function gauss(mixed $value): array | string | float
98 98
     {
99 99
         if (is_array($value)) {
100 100
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Distributions/Beta.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -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 distribution(mixed $value, mixed $alpha, mixed $beta, mixed $rMin = 0.0, mixed $rMax = 1.0): array|string|float
40
+    public static function distribution(mixed $value, mixed $alpha, mixed $beta, mixed $rMin = 0.0, mixed $rMax = 1.0): array | string | float
41 41
     {
42 42
         if (is_array($value) || is_array($alpha) || is_array($beta) || is_array($rMin) || is_array($rMax)) {
43 43
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $alpha, $beta, $rMin, $rMax);
@@ -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 inverse(mixed $probability, mixed $alpha, mixed $beta, mixed $rMin = 0.0, mixed $rMax = 1.0): array|string|float
94
+    public static function inverse(mixed $probability, mixed $alpha, mixed $beta, mixed $rMin = 0.0, mixed $rMax = 1.0): array | string | float
95 95
     {
96 96
         if (is_array($probability) || is_array($alpha) || is_array($beta) || is_array($rMin) || is_array($rMax)) {
97 97
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $probability, $alpha, $beta, $rMin, $rMax);
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         return self::calculateInverse($probability, $alpha, $beta, $rMin, $rMax);
123 123
     }
124 124
 
125
-    private static function calculateInverse(float $probability, float $alpha, float $beta, float $rMin, float $rMax): string|float
125
+    private static function calculateInverse(float $probability, float $alpha, float $beta, float $rMin, float $rMax): string | float
126 126
     {
127 127
         $a = 0;
128 128
         $b = 2;
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(mixed $value, mixed $degrees): array|string|int|float
30
+    public static function distributionRightTail(mixed $value, mixed $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(mixed $value, mixed $degrees, mixed $cumulative): array|string|int|float
73
+    public static function distributionLeftTail(mixed $value, mixed $degrees, mixed $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(mixed $probability, mixed $degrees): array|string|float
163
+    public static function inverseLeftTail(mixed $probability, mixed $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/F.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 distribution(mixed $value, mixed $u, mixed $v, mixed $cumulative): array|string|float
34
+    public static function distribution(mixed $value, mixed $u, mixed $v, mixed $cumulative): array | string | float
35 35
     {
36 36
         if (is_array($value) || is_array($u) || is_array($v) || is_array($cumulative)) {
37 37
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $u, $v, $cumulative);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Distributions/Weibull.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 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 distribution(mixed $value, mixed $alpha, mixed $beta, mixed $cumulative): array|string|float
32
+    public static function distribution(mixed $value, mixed $alpha, mixed $beta, mixed $cumulative): array | string | float
33 33
     {
34 34
         if (is_array($value) || is_array($alpha) || is_array($beta) || is_array($cumulative)) {
35 35
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $alpha, $beta, $cumulative);
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(mixed $value, mixed $mean, mixed $stdDev, mixed $cumulative): array|string|float
36
+    public static function distribution(mixed $value, mixed $mean, mixed $stdDev, mixed $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(mixed $probability, mixed $mean, mixed $stdDev): array|string|float
78
+    public static function inverse(mixed $probability, mixed $mean, mixed $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.