Completed
Push — dev ( 8a664b...9db1c2 )
by Jordan
03:57
created
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/Types/Number.php 1 patch
Doc Comments   +10 added lines, -3 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      * Note about precision: it uses the smaller of the two precisions (significant figures).
132 132
      *
133 133
      * @param $num
134
-     * @param $precision
134
+     * @param integer $precision
135 135
      * @return DecimalInterface|NumberInterface
136 136
      */
137 137
     public function divide($num, $precision = null)
@@ -544,6 +544,9 @@  discard block
 block discarded – undo
544 544
 
545 545
     }
546 546
 
547
+    /**
548
+     * @param ImmutableNumber $num
549
+     */
547 550
     public function getGreatestCommonDivisor($num)
548 551
     {
549 552
         /** @var ImmutableNumber $num */
@@ -938,6 +941,10 @@  discard block
 block discarded – undo
938 941
         return strpos($this->value, '.');
939 942
     }
940 943
 
944
+    /**
945
+     * @param integer $pos
946
+     * @param integer $add
947
+     */
941 948
     protected function reduceDecimals(array $decimalArray, $pos, $add)
942 949
     {
943 950
 
@@ -987,9 +994,9 @@  discard block
 block discarded – undo
987 994
     abstract public function modulo($mod);
988 995
 
989 996
     /**
990
-     * @param $mod
997
+     * @param NumberInterface $mod
991 998
      *
992
-     * @return NumberInterface|DecimalInterface
999
+     * @return NumberInterface
993 1000
      */
994 1001
     abstract public function continuousModulo($mod);
995 1002
 
Please login to merge, or discard this patch.
src/Samsara/Fermat/Provider/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/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.
src/Samsara/Fermat/Provider/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/Types/Fraction.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -24,6 +24,10 @@
 block discarded – undo
24 24
      */
25 25
     protected $denominator;
26 26
 
27
+    /**
28
+     * @param ImmutableNumber $numerator
29
+     * @param ImmutableNumber $denominator
30
+     */
27 31
     public function __construct($numerator, $denominator, $base = 10)
28 32
     {
29 33
 
Please login to merge, or discard this patch.