Passed
Push — master ( f9b1b7...3922d9 )
by
unknown
18:56 queued 11:14
created
src/PhpSpreadsheet/Calculation/Statistical/Distributions/Binomial.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      * @return array|float|int|string If an array of numbers is passed as an argument, then the returned result will also be an array
82 82
      *            with the same dimensions
83 83
      */
84
-    public static function range(mixed $trials, mixed $probability, mixed $successes, mixed $limit = null): array|string|float|int
84
+    public static function range(mixed $trials, mixed $probability, mixed $successes, mixed $limit = null): array | string | float | int
85 85
     {
86 86
         if (is_array($trials) || is_array($probability) || is_array($successes) || is_array($limit)) {
87 87
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $trials, $probability, $successes, $limit);
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      * TODO Add support for the cumulative flag not present for NEGBINOMDIST, but introduced for NEGBINOM.DIST
140 140
      *      The cumulative default should be false to reflect the behaviour of NEGBINOMDIST
141 141
      */
142
-    public static function negative(mixed $failures, mixed $successes, mixed $probability): array|string|float
142
+    public static function negative(mixed $failures, mixed $successes, mixed $probability): array | string | float
143 143
     {
144 144
         if (is_array($failures) || is_array($successes) || is_array($probability)) {
145 145
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $failures, $successes, $probability);
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      * @return array|int|string 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 inverse(mixed $trials, mixed $probability, mixed $alpha): array|string|int
187
+    public static function inverse(mixed $trials, mixed $probability, mixed $alpha): array | string | int
188 188
     {
189 189
         if (is_array($trials) || is_array($probability) || is_array($alpha)) {
190 190
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $trials, $probability, $alpha);
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         return $successes;
217 217
     }
218 218
 
219
-    private static function calculateCumulativeBinomial(int $value, int $trials, float $probability): float|int
219
+    private static function calculateCumulativeBinomial(int $value, int $trials, float $probability): float | int
220 220
     {
221 221
         $summer = 0;
222 222
         for ($i = 0; $i <= $value; ++$i) {
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
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      * @return array|float|string 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 $value, mixed $u, mixed $v, mixed $cumulative): array|string|float
33
+    public static function distribution(mixed $value, mixed $u, mixed $v, mixed $cumulative): array | string | float
34 34
     {
35 35
         if (is_array($value) || is_array($u) || is_array($v) || is_array($cumulative)) {
36 36
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $u, $v, $cumulative);
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);
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @return array|float|string If an array of numbers is passed as an argument, then the returned result will also be an array
128 128
      *            with the same dimensions
129 129
      */
130
-    public static function ln(mixed $value): array|string|float
130
+    public static function ln(mixed $value): array | string | float
131 131
     {
132 132
         if (is_array($value)) {
133 133
             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
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @return array|float|string If an array of numbers is passed as an argument, then the returned result will also be an array
37 37
      *            with the same dimensions
38 38
      */
39
-    public static function distribution(mixed $value, mixed $alpha, mixed $beta, mixed $rMin = 0.0, mixed $rMax = 1.0): array|string|float
39
+    public static function distribution(mixed $value, mixed $alpha, mixed $beta, mixed $rMin = 0.0, mixed $rMax = 1.0): array | string | float
40 40
     {
41 41
         if (is_array($value) || is_array($alpha) || is_array($beta) || is_array($rMin) || is_array($rMax)) {
42 42
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $alpha, $beta, $rMin, $rMax);
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @return array|float|string If an array of numbers is passed as an argument, then the returned result will also be an array
90 90
      *            with the same dimensions
91 91
      */
92
-    public static function inverse(mixed $probability, mixed $alpha, mixed $beta, mixed $rMin = 0.0, mixed $rMax = 1.0): array|string|float
92
+    public static function inverse(mixed $probability, mixed $alpha, mixed $beta, mixed $rMin = 0.0, mixed $rMax = 1.0): array | string | float
93 93
     {
94 94
         if (is_array($probability) || is_array($alpha) || is_array($beta) || is_array($rMin) || is_array($rMax)) {
95 95
             return self::evaluateArrayArguments([self::class, __FUNCTION__], $probability, $alpha, $beta, $rMin, $rMax);
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         return self::calculateInverse($probability, $alpha, $beta, $rMin, $rMax);
121 121
     }
122 122
 
123
-    private static function calculateInverse(float $probability, float $alpha, float $beta, float $rMin, float $rMax): string|float
123
+    private static function calculateInverse(float $probability, float $alpha, float $beta, float $rMin, float $rMax): string | float
124 124
     {
125 125
         $a = 0;
126 126
         $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
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      * @return array|float|string 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 $sampleSuccesses, mixed $sampleNumber, mixed $populationSuccesses, mixed $populationNumber): array|string|float
32
+    public static function distribution(mixed $sampleSuccesses, mixed $sampleNumber, mixed $populationSuccesses, mixed $populationNumber): array | string | float
33 33
     {
34 34
         if (
35 35
             is_array($sampleSuccesses) || is_array($sampleNumber)
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical/Distributions/NewtonRaphson.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         $this->callback = $callback;
18 18
     }
19 19
 
20
-    public function execute(float $probability): string|int|float
20
+    public function execute(float $probability): string | int | float
21 21
     {
22 22
         $xLo = 100;
23 23
         $xHi = 0;
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
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * @return array|float|string If an array of numbers is passed as an argument, then the returned result will also be an array
24 24
      *            with the same dimensions
25 25
      */
26
-    public static function distribution(mixed $value): array|string|float
26
+    public static function distribution(mixed $value): array | string | float
27 27
     {
28 28
         if (is_array($value)) {
29 29
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value);
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      * @return array|float|string If an array of numbers is passed as an argument, then the returned result will also be an array
56 56
      *            with the same dimensions
57 57
      */
58
-    public static function inverse(mixed $probability): array|string|float
58
+    public static function inverse(mixed $probability): array | string | float
59 59
     {
60 60
         if (is_array($probability)) {
61 61
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $probability);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Logical/Operations.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      *         If an array of values is passed as an argument, then the returned result will also be an array
111 111
      *            with the same dimensions
112 112
      */
113
-    public static function NOT(mixed $logical = false): array|bool|string
113
+    public static function NOT(mixed $logical = false): array | bool | string
114 114
     {
115 115
         if (is_array($logical)) {
116 116
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $logical);
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         return !$logical;
131 131
     }
132 132
 
133
-    private static function countTrueValues(array $args, callable $func): bool|string
133
+    private static function countTrueValues(array $args, callable $func): bool | string
134 134
     {
135 135
         $trueValueCount = 0;
136 136
         $count = 0;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Database/DProduct.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
      *                                        the column label in which you specify a condition for the
31 31
      *                                        column.
32 32
      */
33
-    public static function evaluate(array $database, array|null|int|string $field, array $criteria): string|float
33
+    public static function evaluate(array $database, array | null | int | string $field, array $criteria): string | float
34 34
     {
35 35
         $field = self::fieldExtract($database, $field);
36 36
         if ($field === null) {
Please login to merge, or discard this patch.