Passed
Push — master ( 68fd71...055281 )
by
unknown
16:29 queued 06:03
created
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<mixed>|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<mixed>|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.