Failed Conditions
Pull Request — master (#3723)
by Adrien
13:34
created
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/HyperGeometric.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
31 31
      *            with the same dimensions
32 32
      */
33
-    public static function distribution(mixed $sampleSuccesses, mixed $sampleNumber, mixed $populationSuccesses, mixed $populationNumber): array|string|float
33
+    public static function distribution(mixed $sampleSuccesses, mixed $sampleNumber, mixed $populationSuccesses, mixed $populationNumber): array | string | float
34 34
     {
35 35
         if (
36 36
             is_array($sampleSuccesses) || is_array($sampleNumber) ||
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.
src/PhpSpreadsheet/Calculation/Statistical/Distributions/Gamma.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
23 23
      *            with the same dimensions
24 24
      */
25
-    public static function gamma(mixed $value): array|string|float
25
+    public static function gamma(mixed $value): array | string | float
26 26
     {
27 27
         if (is_array($value)) {
28 28
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      *         If an array of numbers is passed as an argument, then the returned result will also be an array
131 131
      *            with the same dimensions
132 132
      */
133
-    public static function ln(mixed $value): array|string|float
133
+    public static function ln(mixed $value): array | string | float
134 134
     {
135 135
         if (is_array($value)) {
136 136
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
Please login to merge, or discard this patch.