Passed
Pull Request — master (#3718)
by Adrien
12:54
created
Category
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($value, $mean, $cumulative): array|string|float
32
+    public static function distribution($value, $mean, $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/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($value, $u, $v, $cumulative): array|string|float
34
+    public static function distribution($value, $u, $v, $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/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($value, $alpha, $beta, $rMin = 0.0, $rMax = 1.0): array|string|float
40
+    public static function distribution($value, $alpha, $beta, $rMin = 0.0, $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($probability, $alpha, $beta, $rMin = 0.0, $rMax = 1.0): array|string|float
94
+    public static function inverse($probability, $alpha, $beta, $rMin = 0.0, $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($sampleSuccesses, $sampleNumber, $populationSuccesses, $populationNumber): array|string|float
33
+    public static function distribution($sampleSuccesses, $sampleNumber, $populationSuccesses, $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/NewtonRaphson.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     }
19 19
 
20 20
     /** @return float|string */
21
-    public function execute(float $probability): string|int|float
21
+    public function execute(float $probability): string | int | float
22 22
     {
23 23
         $xLo = 100;
24 24
         $xHi = 0;
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($value, $alpha, $beta, $cumulative): array|string|float
32
+    public static function distribution($value, $alpha, $beta, $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/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($value): array|string|float
27
+    public static function distribution($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($probability): array|string|float
60
+    public static function inverse($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.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      * @param mixed $rMin
126 126
      * @param mixed $rMax
127 127
      */
128
-    public static function BETADIST($value, $alpha, $beta, $rMin = 0, $rMax = 1): string|float|array
128
+    public static function BETADIST($value, $alpha, $beta, $rMin = 0, $rMax = 1): string | float | array
129 129
     {
130 130
         return Statistical\Distributions\Beta::distribution($value, $alpha, $beta, $rMin, $rMax);
131 131
     }
@@ -537,7 +537,7 @@  discard block
 block discarded – undo
537 537
      *
538 538
      * @return array|float|string The result, or a string containing an error
539 539
      */
540
-    public static function GAMMAFunction($value): string|float|array
540
+    public static function GAMMAFunction($value): string | float | array
541 541
     {
542 542
         return Statistical\Distributions\Gamma::gamma($value);
543 543
     }
@@ -594,7 +594,7 @@  discard block
 block discarded – undo
594 594
      *
595 595
      * @param float $value
596 596
      */
597
-    public static function GAMMALN($value): string|float|array
597
+    public static function GAMMALN($value): string | float | array
598 598
     {
599 599
         return Statistical\Distributions\Gamma::ln($value);
600 600
     }
@@ -790,7 +790,7 @@  discard block
 block discarded – undo
790 790
      *
791 791
      * @return array|string The result, or a string containing an error
792 792
      */
793
-    public static function LINEST(array $yValues, $xValues = null, $const = true, $stats = false): string|array
793
+    public static function LINEST(array $yValues, $xValues = null, $const = true, $stats = false): string | array
794 794
     {
795 795
         return Trends::LINEST($yValues, $xValues, $const, $stats);
796 796
     }
@@ -812,7 +812,7 @@  discard block
 block discarded – undo
812 812
      *
813 813
      * @return array|string The result, or a string containing an error
814 814
      */
815
-    public static function LOGEST(array $yValues, $xValues = null, $const = true, $stats = false): string|array
815
+    public static function LOGEST(array $yValues, $xValues = null, $const = true, $stats = false): string | array
816 816
     {
817 817
         return Trends::LOGEST($yValues, $xValues, $const, $stats);
818 818
     }
@@ -836,7 +836,7 @@  discard block
 block discarded – undo
836 836
      *            accuracy if I can get my head round the mathematics
837 837
      *            (as described at) http://home.online.no/~pjacklam/notes/invnorm/
838 838
      */
839
-    public static function LOGINV($probability, $mean, $stdDev): string|float|array
839
+    public static function LOGINV($probability, $mean, $stdDev): string | float | array
840 840
     {
841 841
         return Statistical\Distributions\LogNormal::inverse($probability, $mean, $stdDev);
842 842
     }
@@ -1219,7 +1219,7 @@  discard block
 block discarded – undo
1219 1219
      *
1220 1220
      * @return float|string (string if result is an error)
1221 1221
      */
1222
-    public static function PERCENTRANK($valueSet, $value, $significance = 3): string|float
1222
+    public static function PERCENTRANK($valueSet, $value, $significance = 3): string | float
1223 1223
     {
1224 1224
         return Statistical\Percentiles::PERCENTRANK($valueSet, $value, $significance);
1225 1225
     }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Logical/Operations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
      *         If an array of values is passed as an argument, then the returned result will also be an array
117 117
      *            with the same dimensions
118 118
      */
119
-    public static function NOT($logical = false): array|bool|string
119
+    public static function NOT($logical = false): array | bool | string
120 120
     {
121 121
         if (is_array($logical)) {
122 122
             return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $logical);
Please login to merge, or discard this patch.