Completed
Push — develop ( 59326f...19fd27 )
by
unknown
31:08
created
src/PhpSpreadsheet/Calculation/MathTrig.php 1 patch
Doc Comments   +18 added lines, -11 removed lines patch added patch discarded remove patch
@@ -10,6 +10,10 @@  discard block
 block discarded – undo
10 10
     //
11 11
     //    Private method to return an array of the factors of the input value
12 12
     //
13
+
14
+    /**
15
+     * @param double $value
16
+     */
13 17
     private static function factors($value)
14 18
     {
15 19
         $startVal = floor(sqrt($value));
@@ -33,6 +37,10 @@  discard block
 block discarded – undo
33 37
         return [(int) $value];
34 38
     }
35 39
 
40
+    /**
41
+     * @param integer $num
42
+     * @param integer $n
43
+     */
36 44
     private static function romanCut($num, $n)
37 45
     {
38 46
         return ($num - ($num % $n)) / $n;
@@ -312,6 +320,9 @@  discard block
 block discarded – undo
312 320
         return Functions::VALUE();
313 321
     }
314 322
 
323
+    /**
324
+     * @param integer $b
325
+     */
315 326
     public static function evaluateGCD($a, $b) {
316 327
         // As we're just working with two values, we can use the recursive Euclidian method
317 328
         // If we were working with more than two values, we need to extend as
@@ -454,7 +465,7 @@  discard block
 block discarded – undo
454 465
      * @category Mathematical and Trigonometric Functions
455 466
      *
456 467
      * @param float $number The positive real number for which you want the logarithm
457
-     * @param float $base The base of the logarithm. If base is omitted, it is assumed to be 10.
468
+     * @param integer $base The base of the logarithm. If base is omitted, it is assumed to be 10.
458 469
      *
459 470
      * @return float
460 471
      */
@@ -772,8 +783,8 @@  discard block
 block discarded – undo
772 783
      *
773 784
      * Computes x raised to the power y.
774 785
      *
775
-     * @param float $x
776
-     * @param float $y
786
+     * @param integer $x
787
+     * @param integer $y
777 788
      *
778 789
      * @return float
779 790
      */
@@ -847,7 +858,7 @@  discard block
 block discarded – undo
847 858
      *
848 859
      * @param mixed ...$args Data values
849 860
      *
850
-     * @return float
861
+     * @return integer
851 862
      */
852 863
     public static function QUOTIENT(...$args)
853 864
     {
@@ -985,9 +996,6 @@  discard block
 block discarded – undo
985 996
      *
986 997
      * Returns the sum of a power series
987 998
      *
988
-     * @param float $x Input value to the power series
989
-     * @param float $n Initial power to which you want to raise $x
990
-     * @param float $m Step by which to increase $n for each term in the series
991 999
      * @param array of mixed Data Series
992 1000
      *
993 1001
      * @return float
@@ -1184,7 +1192,7 @@  discard block
 block discarded – undo
1184 1192
      * @param mixed $aArgs
1185 1193
      * @param mixed $sumArgs
1186 1194
      *
1187
-     * @return float
1195
+     * @return integer
1188 1196
      */
1189 1197
     public static function SUMIF($aArgs, $condition, $sumArgs = [])
1190 1198
     {
@@ -1224,9 +1232,8 @@  discard block
 block discarded – undo
1224 1232
      *    @category Mathematical and Trigonometric Functions
1225 1233
      *
1226 1234
      * @param mixed $args Data values
1227
-     * @param string $condition the criteria that defines which cells will be summed
1228 1235
      *
1229
-     * @return float
1236
+     * @return integer
1230 1237
      */
1231 1238
     public static function SUMIFS(...$args)
1232 1239
     {
@@ -1415,7 +1422,7 @@  discard block
 block discarded – undo
1415 1422
      *
1416 1423
      * Truncates value to the number of fractional digits by number_digits.
1417 1424
      *
1418
-     * @param float $value
1425
+     * @param integer $value
1419 1426
      * @param int $digits
1420 1427
      *
1421 1428
      * @return float Truncated value
Please login to merge, or discard this patch.