Completed
Push — dev ( 083710...9bd34c )
by Jordan
03:13
created
src/Samsara/Fermat/Numbers.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -306,6 +306,7 @@  discard block
 block discarded – undo
306 306
     }
307 307
 
308 308
     /**
309
+     * @param integer $precision
309 310
      * @return ImmutableNumber
310 311
      */
311 312
     public static function makeOne($precision = null)
@@ -314,6 +315,7 @@  discard block
 block discarded – undo
314 315
     }
315 316
 
316 317
     /**
318
+     * @param integer $precision
317 319
      * @return ImmutableNumber
318 320
      */
319 321
     public static function makeZero($precision = null)
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.