Completed
Push — dev ( e96e7a...ebf396 )
by Jordan
02:25
created
src/Samsara/Fermat/Provider/Stats/Stats.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -88,6 +88,9 @@
 block discarded – undo
88 88
 
89 89
     }
90 90
 
91
+    /**
92
+     * @param NumberInterface $p
93
+     */
91 94
     public static function inverseNormalCDF($p, $precision = 10)
92 95
     {
93 96
         $pi = Numbers::makePi();
Please login to merge, or discard this patch.
src/Samsara/Fermat/Values/Currency.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,10 @@  discard block
 block discarded – undo
21 21
 
22 22
     protected $symbol;
23 23
 
24
+    /**
25
+     * @param integer $symbol
26
+     * @param integer $precision
27
+     */
24 28
     public function __construct($value, $symbol = Currency::DOLLAR, $precision = null, $base = 10)
25 29
     {
26 30
         $this->symbol = $symbol;
@@ -63,7 +67,7 @@  discard block
 block discarded – undo
63 67
     }
64 68
 
65 69
     /**
66
-     * @param $value
70
+     * @param NumberInterface $value
67 71
      *
68 72
      * @return Currency
69 73
      */
Please login to merge, or discard this patch.
src/Samsara/Fermat/Types/Number.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@  discard block
 block discarded – undo
52 52
         return $this->precision;
53 53
     }
54 54
 
55
+    /**
56
+     * @param NumberInterface $num
57
+     */
55 58
     public function add($num)
56 59
     {
57 60
         $num = Numbers::makeOrDont($this, $num, $this->getPrecision());
@@ -101,7 +104,7 @@  discard block
 block discarded – undo
101 104
      * Note about precision: it uses the smaller of the two precisions (significant figures).
102 105
      *
103 106
      * @param $num
104
-     * @return mixed
107
+     * @return NumberInterface
105 108
      */
106 109
     public function divide($num)
107 110
     {
@@ -398,6 +401,9 @@  discard block
 block discarded – undo
398 401
 
399 402
     }
400 403
 
404
+    /**
405
+     * @param ImmutableNumber $num
406
+     */
401 407
     public function getGreatestCommonDivisor($num)
402 408
     {
403 409
         /** @var ImmutableNumber $num */
Please login to merge, or discard this patch.
src/Samsara/Fermat/Values/ImmutableNumber.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@
 block discarded – undo
10 10
 class ImmutableNumber extends Number implements NumberInterface, DecimalInterface
11 11
 {
12 12
 
13
+    /**
14
+     * @param ImmutableNumber $mod
15
+     */
13 16
     public function modulo($mod)
14 17
     {
15 18
         $oldBase = $this->convertForModification();
Please login to merge, or discard this patch.
src/Samsara/Fermat/Provider/Stats/Distribution/Exponential.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
178 178
     }
179 179
 
180 180
     /**
181
-     * @param int|float|DecimalInterface $min
181
+     * @param integer $min
182 182
      * @param int|float|DecimalInterface $max
183 183
      * @param int $maxIterations
184 184
      *
Please login to merge, or discard this patch.
src/Samsara/Fermat/Provider/Stats/Distribution/Poisson.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
      * WARNING: This function is of very limited use with Poisson distributions, and may represent a SIGNIFICANT
164 164
      * performance hit for certain values of $min, $max, $lambda, and $maxIterations
165 165
      *
166
-     * @param int|float|NumberInterface $min
166
+     * @param integer $min
167 167
      * @param int|float|NumberInterface $max
168 168
      * @param int $maxIterations
169 169
      *
Please login to merge, or discard this patch.
src/Samsara/Fermat/Provider/Stats/Distribution/Normal.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
      * WARNING: This function is of very limited use with Poisson distributions, and may represent a SIGNIFICANT
164 164
      * performance hit for certain values of $min, $max, $lambda, and $maxIterations
165 165
      *
166
-     * @param int|float|NumberInterface $min
166
+     * @param integer $min
167 167
      * @param int|float|NumberInterface $max
168 168
      * @param int $maxIterations
169 169
      *
Please login to merge, or discard this patch.