Passed
Pull Request — master (#4468)
by Owen
21:21 queued 14:00
created
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/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.
src/PhpSpreadsheet/Calculation/Database/DAverage.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|int|float
33
+    public static function evaluate(array $database, array | null | int | string $field, array $criteria): string | int | float
34 34
     {
35 35
         $field = self::fieldExtract($database, $field);
36 36
         if ($field === null) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Database/DStDev.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
      *                                        the column label in which you specify a condition for the
32 32
      *                                        column.
33 33
      */
34
-    public static function evaluate(array $database, array|null|int|string $field, array $criteria): float|string
34
+    public static function evaluate(array $database, array | null | int | string $field, array $criteria): float | string
35 35
     {
36 36
         $field = self::fieldExtract($database, $field);
37 37
         if ($field === null) {
Please login to merge, or discard this patch.