Completed
Push — develop ( 66f372...1cdc85 )
by Adrien
20:59
created
src/PhpSpreadsheet/Calculation/Financial.php 1 patch
Doc Comments   +48 added lines, -41 removed lines patch added patch discarded remove patch
@@ -60,6 +60,10 @@  discard block
 block discarded – undo
60 60
         return $testDate->format('d') == 1;
61 61
     }
62 62
 
63
+    /**
64
+     * @param integer $frequency
65
+     * @param boolean $next
66
+     */
63 67
     private static function couponFirstPeriodDate($settlement, $maturity, $frequency, $next)
64 68
     {
65 69
         $months = 12 / $frequency;
@@ -81,6 +85,9 @@  discard block
 block discarded – undo
81 85
         return \PhpOffice\PhpSpreadsheet\Shared\Date::PHPToExcel($result);
82 86
     }
83 87
 
88
+    /**
89
+     * @param integer $frequency
90
+     */
84 91
     private static function isValidFrequency($frequency)
85 92
     {
86 93
         if (($frequency == 1) || ($frequency == 2) || ($frequency == 4)) {
@@ -159,7 +166,7 @@  discard block
 block discarded – undo
159 166
      *                                    The security settlement date is the date after the issue date
160 167
      *                                    when the security is traded to the buyer.
161 168
      * @param    float    $rate            the security's annual coupon rate
162
-     * @param    float    $par            The security's par value.
169
+     * @param    integer    $par            The security's par value.
163 170
      *                                    If you omit par, ACCRINT uses $1,000.
164 171
      * @param    int    $frequency        the number of coupon payments per year.
165 172
      *                                    Valid frequency values are:
@@ -232,8 +239,8 @@  discard block
 block discarded – undo
232 239
      * @param mixed $issue
233 240
      * @param mixed $settlement
234 241
      * @param mixed $rate
235
-     * @param mixed $par
236
-     * @param mixed $basis
242
+     * @param integer $par
243
+     * @param integer $basis
237 244
      *
238 245
      * @return    float
239 246
      */
@@ -299,7 +306,7 @@  discard block
 block discarded – undo
299 306
      * @param mixed $salvage
300 307
      * @param mixed $period
301 308
      * @param mixed $rate
302
-     * @param mixed $basis
309
+     * @param integer $basis
303 310
      *
304 311
      * @return    float
305 312
      */
@@ -384,7 +391,7 @@  discard block
 block discarded – undo
384 391
      * @param mixed $salvage
385 392
      * @param mixed $period
386 393
      * @param mixed $rate
387
-     * @param mixed $basis
394
+     * @param integer $basis
388 395
      *
389 396
      * @return    float
390 397
      */
@@ -454,8 +461,8 @@  discard block
 block discarded – undo
454 461
      *                                        4                European 30/360
455 462
      * @param mixed $settlement
456 463
      * @param mixed $maturity
457
-     * @param mixed $frequency
458
-     * @param mixed $basis
464
+     * @param integer $frequency
465
+     * @param integer $basis
459 466
      *
460 467
      * @return    float
461 468
      */
@@ -518,7 +525,7 @@  discard block
 block discarded – undo
518 525
      * @param int $frequency
519 526
      * @param mixed $settlement
520 527
      * @param mixed $maturity
521
-     * @param mixed $basis
528
+     * @param integer $basis
522 529
      *
523 530
      * @return    float
524 531
      */
@@ -597,8 +604,8 @@  discard block
 block discarded – undo
597 604
      *                                        4                European 30/360
598 605
      * @param mixed $settlement
599 606
      * @param mixed $maturity
600
-     * @param mixed $frequency
601
-     * @param mixed $basis
607
+     * @param integer $frequency
608
+     * @param integer $basis
602 609
      *
603 610
      * @return    float
604 611
      */
@@ -661,7 +668,7 @@  discard block
 block discarded – undo
661 668
      * @param mixed $settlement
662 669
      * @param mixed $maturity
663 670
      * @param mixed $frequency
664
-     * @param mixed $basis
671
+     * @param integer $basis
665 672
      *
666 673
      * @return    mixed    Excel date/time serial value, PHP date/time serial value or PHP date/time object,
667 674
      *                        depending on the value of the ReturnDateType flag
@@ -722,8 +729,8 @@  discard block
 block discarded – undo
722 729
      *                                        4                European 30/360
723 730
      * @param mixed $settlement
724 731
      * @param mixed $maturity
725
-     * @param mixed $frequency
726
-     * @param mixed $basis
732
+     * @param integer $frequency
733
+     * @param integer $basis
727 734
      *
728 735
      * @return    int
729 736
      */
@@ -799,7 +806,7 @@  discard block
 block discarded – undo
799 806
      * @param mixed $settlement
800 807
      * @param mixed $maturity
801 808
      * @param mixed $frequency
802
-     * @param mixed $basis
809
+     * @param integer $basis
803 810
      *
804 811
      * @return    mixed    Excel date/time serial value, PHP date/time serial value or PHP date/time object,
805 812
      *                        depending on the value of the ReturnDateType flag
@@ -951,7 +958,7 @@  discard block
 block discarded – undo
951 958
      * @param mixed $salvage
952 959
      * @param mixed $life
953 960
      * @param mixed $period
954
-     * @param mixed $month
961
+     * @param integer $month
955 962
      *
956 963
      * @return    float
957 964
      */
@@ -1026,7 +1033,7 @@  discard block
 block discarded – undo
1026 1033
      * @param mixed $salvage
1027 1034
      * @param mixed $life
1028 1035
      * @param mixed $period
1029
-     * @param mixed $factor
1036
+     * @param double $factor
1030 1037
      *
1031 1038
      * @return    float
1032 1039
      */
@@ -1095,7 +1102,7 @@  discard block
 block discarded – undo
1095 1102
      * @param mixed $maturity
1096 1103
      * @param mixed $price
1097 1104
      * @param mixed $redemption
1098
-     * @param mixed $basis
1105
+     * @param integer $basis
1099 1106
      *
1100 1107
      * @return    float
1101 1108
      */
@@ -1214,7 +1221,7 @@  discard block
 block discarded – undo
1214 1221
      *
1215 1222
      * @category Financial Functions
1216 1223
      *
1217
-     * @param    float    $nominal_rate        Nominal interest rate
1224
+     * @param    integer    $nominal_rate        Nominal interest rate
1218 1225
      * @param    int    $npery                Number of compounding payments per year
1219 1226
      *
1220 1227
      * @return    float
@@ -1242,12 +1249,12 @@  discard block
 block discarded – undo
1242 1249
      *
1243 1250
      * @category Financial Functions
1244 1251
      *
1245
-     * @param    float    $rate    The interest rate per period
1252
+     * @param    integer    $rate    The interest rate per period
1246 1253
      * @param    int        $nper    Total number of payment periods in an annuity
1247
-     * @param    float    $pmt    The payment made each period: it cannot change over the
1254
+     * @param    integer    $pmt    The payment made each period: it cannot change over the
1248 1255
      *                            life of the annuity. Typically, pmt contains principal
1249 1256
      *                            and interest but no other fees or taxes.
1250
-     * @param    float    $pv        present Value, or the lump-sum amount that a series of
1257
+     * @param    integer    $pv        present Value, or the lump-sum amount that a series of
1251 1258
      *                            future payments is worth right now
1252 1259
      * @param    int    $type    A number 0 or 1 and indicates when payments are due:
1253 1260
      *                                0 or omitted    At the end of the period.
@@ -1365,7 +1372,7 @@  discard block
 block discarded – undo
1365 1372
      * @param    int        $per    Period for which we want to find the interest
1366 1373
      * @param    int        $nper    Number of periods
1367 1374
      * @param    float    $pv        Present Value
1368
-     * @param    float    $fv        Future Value
1375
+     * @param    integer    $fv        Future Value
1369 1376
      * @param    int        $type    Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1370 1377
      *
1371 1378
      * @return    float
@@ -1560,7 +1567,7 @@  discard block
 block discarded – undo
1560 1567
      *
1561 1568
      * Returns the nominal interest rate given the effective rate and the number of compounding payments per year.
1562 1569
      *
1563
-     * @param    float    $effect_rate    Effective interest rate
1570
+     * @param    integer    $effect_rate    Effective interest rate
1564 1571
      * @param    int        $npery            Number of compounding payments per year
1565 1572
      *
1566 1573
      * @return    float
@@ -1584,10 +1591,10 @@  discard block
 block discarded – undo
1584 1591
      *
1585 1592
      * Returns the number of periods for a cash flow with constant periodic payments (annuities), and interest rate.
1586 1593
      *
1587
-     * @param    float    $rate    Interest rate per period
1594
+     * @param    integer    $rate    Interest rate per period
1588 1595
      * @param    int        $pmt    Periodic payment (annuity)
1589
-     * @param    float    $pv        Present Value
1590
-     * @param    float    $fv        Future Value
1596
+     * @param    integer    $pv        Present Value
1597
+     * @param    integer    $fv        Future Value
1591 1598
      * @param    int        $type    Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1592 1599
      *
1593 1600
      * @return    float
@@ -1653,10 +1660,10 @@  discard block
 block discarded – undo
1653 1660
      *
1654 1661
      * Returns the constant payment (annuity) for a cash flow with a constant interest rate.
1655 1662
      *
1656
-     * @param    float    $rate    Interest rate per period
1663
+     * @param    integer    $rate    Interest rate per period
1657 1664
      * @param    int        $nper    Number of periods
1658
-     * @param    float    $pv        Present Value
1659
-     * @param    float    $fv        Future Value
1665
+     * @param    integer    $pv        Present Value
1666
+     * @param    integer    $fv        Future Value
1660 1667
      * @param    int        $type    Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1661 1668
      *
1662 1669
      * @return    float
@@ -1691,7 +1698,7 @@  discard block
 block discarded – undo
1691 1698
      * @param    int        $per    Period for which we want to find the interest
1692 1699
      * @param    int        $nper    Number of periods
1693 1700
      * @param    float    $pv        Present Value
1694
-     * @param    float    $fv        Future Value
1701
+     * @param    integer    $fv        Future Value
1695 1702
      * @param    int        $type    Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1696 1703
      *
1697 1704
      * @return    float
@@ -1781,7 +1788,7 @@  discard block
 block discarded – undo
1781 1788
      * @param mixed $maturity
1782 1789
      * @param mixed $discount
1783 1790
      * @param mixed $redemption
1784
-     * @param mixed $basis
1791
+     * @param integer $basis
1785 1792
      *
1786 1793
      * @return    float
1787 1794
      */
@@ -1833,7 +1840,7 @@  discard block
 block discarded – undo
1833 1840
      * @param mixed $issue
1834 1841
      * @param mixed $rate
1835 1842
      * @param mixed $yield
1836
-     * @param mixed $basis
1843
+     * @param integer $basis
1837 1844
      *
1838 1845
      * @return    float
1839 1846
      */
@@ -1887,10 +1894,10 @@  discard block
 block discarded – undo
1887 1894
      *
1888 1895
      * Returns the Present Value of a cash flow with constant payments and interest rate (annuities).
1889 1896
      *
1890
-     * @param    float    $rate    Interest rate per period
1897
+     * @param    integer    $rate    Interest rate per period
1891 1898
      * @param    int        $nper    Number of periods
1892
-     * @param    float    $pmt    Periodic payment (annuity)
1893
-     * @param    float    $fv        Future Value
1899
+     * @param    integer    $pmt    Periodic payment (annuity)
1900
+     * @param    integer    $fv        Future Value
1894 1901
      * @param    int        $type    Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1895 1902
      *
1896 1903
      * @return    float
@@ -1947,9 +1954,9 @@  discard block
 block discarded – undo
1947 1954
      * @param mixed $nper
1948 1955
      * @param mixed $pmt
1949 1956
      * @param mixed $pv
1950
-     * @param mixed $fv
1951
-     * @param mixed $type
1952
-     * @param mixed $guess
1957
+     * @param double $fv
1958
+     * @param integer $type
1959
+     * @param double $guess
1953 1960
      *
1954 1961
      * @return    float
1955 1962
      **/
@@ -2018,7 +2025,7 @@  discard block
 block discarded – undo
2018 2025
      * @param mixed $maturity
2019 2026
      * @param mixed $investment
2020 2027
      * @param mixed $discount
2021
-     * @param mixed $basis
2028
+     * @param integer $basis
2022 2029
      *
2023 2030
      * @return    float
2024 2031
      */
@@ -2388,7 +2395,7 @@  discard block
 block discarded – undo
2388 2395
      * @param mixed $maturity
2389 2396
      * @param mixed $price
2390 2397
      * @param mixed $redemption
2391
-     * @param mixed $basis
2398
+     * @param integer $basis
2392 2399
      *
2393 2400
      * @return    float
2394 2401
      */
@@ -2445,7 +2452,7 @@  discard block
 block discarded – undo
2445 2452
      * @param mixed $issue
2446 2453
      * @param mixed $rate
2447 2454
      * @param mixed $price
2448
-     * @param mixed $basis
2455
+     * @param integer $basis
2449 2456
      *
2450 2457
      * @return    float
2451 2458
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/LookupRef.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      *
37 37
      * @param    row                Row number to use in the cell reference
38 38
      * @param    column            Column number to use in the cell reference
39
-     * @param    relativity        Flag indicating the type of reference to return
39
+     * @param    relativity        integer indicating the type of reference to return
40 40
      *                                1 or omitted    Absolute
41 41
      *                                2                Absolute row; relative column
42 42
      *                                3                Relative row; absolute column
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * @param    sheetText        Optional Name of worksheet to use
48 48
      * @param mixed $row
49 49
      * @param mixed $column
50
-     * @param mixed $relativity
50
+     * @param integer $relativity
51 51
      * @param mixed $referenceStyle
52 52
      * @param mixed $sheetText
53 53
      *
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
      *
362 362
      * @param    cellAddress        The reference from which you want to base the offset. Reference must refer to a cell or
363 363
      *                                range of adjacent cells; otherwise, OFFSET returns the #VALUE! error value.
364
-     * @param    rows            The number of rows, up or down, that you want the upper-left cell to refer to.
364
+     * @param    rows            integer number of rows, up or down, that you want the upper-left cell to refer to.
365 365
      *                                Using 5 as the rows argument specifies that the upper-left cell in the reference is
366 366
      *                                five rows below reference. Rows can be positive (which means below the starting reference)
367 367
      *                                or negative (which means above the starting reference).
@@ -373,8 +373,8 @@  discard block
 block discarded – undo
373 373
      * @param    height            The height, in number of rows, that you want the returned reference to be. Height must be a positive number.
374 374
      * @param    width            The width, in number of columns, that you want the returned reference to be. Width must be a positive number.
375 375
      * @param null|mixed $cellAddress
376
-     * @param mixed $rows
377
-     * @param mixed $columns
376
+     * @param integer $rows
377
+     * @param integer $columns
378 378
      * @param null|mixed $height
379 379
      * @param null|mixed $width
380 380
      *
@@ -504,10 +504,10 @@  discard block
 block discarded – undo
504 504
      *
505 505
      * @param    lookup_value    The value that you want to match in lookup_array
506 506
      * @param    lookup_array    The range of cells being searched
507
-     * @param    match_type        The number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered.
507
+     * @param    match_type        integer number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered.
508 508
      * @param mixed $lookup_value
509 509
      * @param mixed $lookup_array
510
-     * @param mixed $match_type
510
+     * @param integer $match_type
511 511
      *
512 512
      * @return    int            The relative position of the found item
513 513
      */
@@ -604,8 +604,8 @@  discard block
 block discarded – undo
604 604
      * @param    row_num            The row in array from which to return a value. If row_num is omitted, column_num is required.
605 605
      * @param    column_num        The column in array from which to return a value. If column_num is omitted, row_num is required.
606 606
      * @param mixed $arrayValues
607
-     * @param mixed $rowNum
608
-     * @param mixed $columnNum
607
+     * @param integer $rowNum
608
+     * @param integer $columnNum
609 609
      *
610 610
      * @return    mixed            the value of a specified cell or array of cells
611 611
      */
@@ -701,11 +701,11 @@  discard block
 block discarded – undo
701 701
      *
702 702
      * @param    lookup_value    The value that you want to match in lookup_array
703 703
      * @param    lookup_array    The range of cells being searched
704
-     * @param    index_number    The column number in table_array from which the matching value must be returned. The first column is 1.
704
+     * @param    index_number    integer column number in table_array from which the matching value must be returned. The first column is 1.
705 705
      * @param    not_exact_match    determines if you are looking for an exact match based on lookup_value
706 706
      * @param mixed $lookup_value
707 707
      * @param mixed $lookup_array
708
-     * @param mixed $index_number
708
+     * @param integer $index_number
709 709
      * @param mixed $not_exact_match
710 710
      *
711 711
      * @return    mixed            The value of the found cell
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig.php 1 patch
Doc Comments   +11 added lines, -21 removed lines patch added patch discarded remove patch
@@ -52,6 +52,10 @@  discard block
 block discarded – undo
52 52
         return [(int) $value];
53 53
     }
54 54
 
55
+    /**
56
+     * @param integer $num
57
+     * @param integer $n
58
+     */
55 59
     private static function romanCut($num, $n)
56 60
     {
57 61
         return ($num - ($num % $n)) / $n;
@@ -343,7 +347,6 @@  discard block
 block discarded – undo
343 347
      *
344 348
      * @category Mathematical and Trigonometric Functions
345 349
      *
346
-     * @param    mixed    $arg,...        Data values
347 350
      *
348 351
      * @return    int                    Greatest Common Divisor
349 352
      */
@@ -452,7 +455,6 @@  discard block
 block discarded – undo
452 455
      *
453 456
      * @category Mathematical and Trigonometric Functions
454 457
      *
455
-     * @param    mixed    $arg,...        Data values
456 458
      *
457 459
      * @return    int        Lowest Common Multiplier
458 460
      */
@@ -504,7 +506,7 @@  discard block
 block discarded – undo
504 506
      * @category Mathematical and Trigonometric Functions
505 507
      *
506 508
      * @param    float    $number        The positive real number for which you want the logarithm
507
-     * @param    float    $base        The base of the logarithm. If base is omitted, it is assumed to be 10.
509
+     * @param    integer    $base        The base of the logarithm. If base is omitted, it is assumed to be 10.
508 510
      *
509 511
      * @return    float
510 512
      */
@@ -822,8 +824,8 @@  discard block
 block discarded – undo
822 824
      *
823 825
      * Computes x raised to the power y.
824 826
      *
825
-     * @param    float        $x
826
-     * @param    float        $y
827
+     * @param    integer        $x
828
+     * @param    integer        $y
827 829
      *
828 830
      * @return    float
829 831
      */
@@ -855,7 +857,6 @@  discard block
 block discarded – undo
855 857
      *
856 858
      * @category Mathematical and Trigonometric Functions
857 859
      *
858
-     * @param    mixed        $arg,...        Data values
859 860
      *
860 861
      * @return    float
861 862
      */
@@ -895,9 +896,8 @@  discard block
 block discarded – undo
895 896
      *
896 897
      * @category Mathematical and Trigonometric Functions
897 898
      *
898
-     * @param    mixed        $arg,...        Data values
899 899
      *
900
-     * @return    float
900
+     * @return    integer
901 901
      */
902 902
     public static function QUOTIENT()
903 903
     {
@@ -1035,9 +1035,6 @@  discard block
 block discarded – undo
1035 1035
      *
1036 1036
      * Returns the sum of a power series
1037 1037
      *
1038
-     * @param    float            $x    Input value to the power series
1039
-     * @param    float            $n    Initial power to which you want to raise $x
1040
-     * @param    float            $m    Step by which to increase $n for each term in the series
1041 1038
      * @param    array of mixed        Data Series
1042 1039
      *
1043 1040
      * @return    float
@@ -1181,7 +1178,6 @@  discard block
 block discarded – undo
1181 1178
      *
1182 1179
      * @category Mathematical and Trigonometric Functions
1183 1180
      *
1184
-     * @param    mixed        $arg,...        Data values
1185 1181
      *
1186 1182
      * @return    float
1187 1183
      */
@@ -1210,12 +1206,11 @@  discard block
 block discarded – undo
1210 1206
      *
1211 1207
      * @category Mathematical and Trigonometric Functions
1212 1208
      *
1213
-     * @param    mixed        $arg,...        Data values
1214 1209
      * @param    string        $condition        the criteria that defines which cells will be summed
1215 1210
      * @param mixed $aArgs
1216 1211
      * @param mixed $sumArgs
1217 1212
      *
1218
-     * @return    float
1213
+     * @return    integer
1219 1214
      */
1220 1215
     public static function SUMIF($aArgs, $condition, $sumArgs = [])
1221 1216
     {
@@ -1254,10 +1249,7 @@  discard block
 block discarded – undo
1254 1249
      *
1255 1250
      *    @category Mathematical and Trigonometric Functions
1256 1251
      *
1257
-     *    @param    mixed        $arg,...        Data values
1258
-     *    @param    string        $condition        the criteria that defines which cells will be summed
1259
-     *
1260
-     *    @return    float
1252
+     * @return integer
1261 1253
      */
1262 1254
     public static function SUMIFS()
1263 1255
     {
@@ -1302,7 +1294,6 @@  discard block
 block discarded – undo
1302 1294
      *
1303 1295
      * @category Mathematical and Trigonometric Functions
1304 1296
      *
1305
-     * @param    mixed        $arg,...        Data values
1306 1297
      *
1307 1298
      * @return    float
1308 1299
      */
@@ -1347,7 +1338,6 @@  discard block
 block discarded – undo
1347 1338
      *
1348 1339
      * @category Mathematical and Trigonometric Functions
1349 1340
      *
1350
-     * @param    mixed        $arg,...        Data values
1351 1341
      *
1352 1342
      * @return    float
1353 1343
      */
@@ -1446,7 +1436,7 @@  discard block
 block discarded – undo
1446 1436
      *
1447 1437
      * Truncates value to the number of fractional digits by number_digits.
1448 1438
      *
1449
-     * @param    float        $value
1439
+     * @param    integer        $value
1450 1440
      * @param    int            $digits
1451 1441
      *
1452 1442
      * @return    float        Truncated value
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical.php 1 patch
Doc Comments   +9 added lines, -46 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      * @param mixed $p
134 134
      * @param mixed $q
135 135
      *
136
-     * @return 0 if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow
136
+     * @return double if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow
137 137
      *
138 138
      * @author Jaco van Kooten
139 139
      */
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
      * @author Jaco van Kooten
160 160
      *
161 161
      * @param mixed $x
162
-     * @param mixed $p
163
-     * @param mixed $q
162
+     * @param double $p
163
+     * @param double $q
164 164
      */
165 165
     private static function betaFraction($x, $p, $q)
166 166
     {
@@ -722,7 +722,6 @@  discard block
 block discarded – undo
722 722
      *
723 723
      * @category Statistical Functions
724 724
      *
725
-     * @param    mixed        $arg,...        Data values
726 725
      *
727 726
      * @return    float
728 727
      */
@@ -773,7 +772,6 @@  discard block
 block discarded – undo
773 772
      *
774 773
      * @category Statistical Functions
775 774
      *
776
-     * @param    mixed        $arg,...        Data values
777 775
      *
778 776
      * @return    float
779 777
      */
@@ -816,7 +814,6 @@  discard block
 block discarded – undo
816 814
      *
817 815
      * @category Statistical Functions
818 816
      *
819
-     * @param    mixed        $arg,...        Data values
820 817
      *
821 818
      * @return    float
822 819
      */
@@ -863,7 +860,6 @@  discard block
 block discarded – undo
863 860
      *
864 861
      * @category Mathematical and Trigonometric Functions
865 862
      *
866
-     * @param    mixed        $arg,...        Data values
867 863
      * @param    string        $condition        the criteria that defines which cells will be checked
868 864
      * @param    mixed[]        $averageArgs    Data values
869 865
      * @param mixed $aArgs
@@ -910,8 +906,8 @@  discard block
 block discarded – undo
910 906
      * @param    float        $value            Value at which you want to evaluate the distribution
911 907
      * @param    float        $alpha            Parameter to the distribution
912 908
      * @param    float        $beta            Parameter to the distribution
913
-     * @param mixed $rMin
914
-     * @param mixed $rMax
909
+     * @param integer $rMin
910
+     * @param integer $rMax
915 911
      *
916 912
      * @return    float
917 913
      */
@@ -949,8 +945,8 @@  discard block
 block discarded – undo
949 945
      * @param    float        $probability    Probability at which you want to evaluate the distribution
950 946
      * @param    float        $alpha            Parameter to the distribution
951 947
      * @param    float        $beta            Parameter to the distribution
952
-     * @param    float        $rMin            Minimum value
953
-     * @param    float        $rMax            Maximum value
948
+     * @param    integer        $rMin            Minimum value
949
+     * @param    integer        $rMax            Maximum value
954 950
      *
955 951
      * @return    float
956 952
      */
@@ -1210,7 +1206,6 @@  discard block
 block discarded – undo
1210 1206
      *
1211 1207
      * @category Statistical Functions
1212 1208
      *
1213
-     * @param    mixed        $arg,...        Data values
1214 1209
      *
1215 1210
      * @return    int
1216 1211
      */
@@ -1244,7 +1239,6 @@  discard block
 block discarded – undo
1244 1239
      *
1245 1240
      * @category Statistical Functions
1246 1241
      *
1247
-     * @param    mixed        $arg,...        Data values
1248 1242
      *
1249 1243
      * @return    int
1250 1244
      */
@@ -1274,7 +1268,6 @@  discard block
 block discarded – undo
1274 1268
      *
1275 1269
      * @category Statistical Functions
1276 1270
      *
1277
-     * @param    mixed        $arg,...        Data values
1278 1271
      *
1279 1272
      * @return    int
1280 1273
      */
@@ -1304,7 +1297,6 @@  discard block
 block discarded – undo
1304 1297
      *
1305 1298
      * @category Statistical Functions
1306 1299
      *
1307
-     * @param    mixed        $arg,...        Data values
1308 1300
      * @param    string        $condition        the criteria that defines which cells will be counted
1309 1301
      * @param mixed $aArgs
1310 1302
      *
@@ -1495,7 +1487,6 @@  discard block
 block discarded – undo
1495 1487
      *
1496 1488
      * @category Statistical Functions
1497 1489
      *
1498
-     * @param    mixed        $arg,...        Data values
1499 1490
      *
1500 1491
      * @return    float
1501 1492
      */
@@ -1789,7 +1780,6 @@  discard block
 block discarded – undo
1789 1780
      *
1790 1781
      * @category Statistical Functions
1791 1782
      *
1792
-     * @param    mixed        $arg,...        Data values
1793 1783
      *
1794 1784
      * @return    float
1795 1785
      */
@@ -1855,7 +1845,6 @@  discard block
 block discarded – undo
1855 1845
      *
1856 1846
      * @category Statistical Functions
1857 1847
      *
1858
-     * @param    mixed        $arg,...        Data values
1859 1848
      *
1860 1849
      * @return    float
1861 1850
      */
@@ -2016,8 +2005,6 @@  discard block
 block discarded – undo
2016 2005
      *
2017 2006
      * @category Statistical Functions
2018 2007
      *
2019
-     * @param    mixed        $arg,...        Data values
2020
-     * @param    int            $entry            Position (ordered from the largest) in the array or range of data to return
2021 2008
      *
2022 2009
      * @return    float
2023 2010
      */
@@ -2253,7 +2240,6 @@  discard block
 block discarded – undo
2253 2240
      *
2254 2241
      * @category Statistical Functions
2255 2242
      *
2256
-     * @param    mixed        $arg,...        Data values
2257 2243
      *
2258 2244
      * @return    float
2259 2245
      */
@@ -2289,7 +2275,6 @@  discard block
 block discarded – undo
2289 2275
      *
2290 2276
      * @category Statistical Functions
2291 2277
      *
2292
-     * @param    mixed        $arg,...        Data values
2293 2278
      *
2294 2279
      * @return    float
2295 2280
      */
@@ -2330,7 +2315,6 @@  discard block
 block discarded – undo
2330 2315
      *
2331 2316
      * @category Mathematical and Trigonometric Functions
2332 2317
      *
2333
-     * @param    mixed        $arg,...        Data values
2334 2318
      * @param    string        $condition        the criteria that defines which cells will be checked
2335 2319
      * @param mixed $aArgs
2336 2320
      * @param mixed $sumArgs
@@ -2373,7 +2357,6 @@  discard block
 block discarded – undo
2373 2357
      *
2374 2358
      * @category Statistical Functions
2375 2359
      *
2376
-     * @param    mixed        $arg,...        Data values
2377 2360
      *
2378 2361
      * @return    float
2379 2362
      */
@@ -2417,7 +2400,6 @@  discard block
 block discarded – undo
2417 2400
      *
2418 2401
      * @category Statistical Functions
2419 2402
      *
2420
-     * @param    mixed        $arg,...        Data values
2421 2403
      *
2422 2404
      * @return    float
2423 2405
      */
@@ -2453,7 +2435,6 @@  discard block
 block discarded – undo
2453 2435
      *
2454 2436
      * @category Statistical Functions
2455 2437
      *
2456
-     * @param    mixed        $arg,...        Data values
2457 2438
      *
2458 2439
      * @return    float
2459 2440
      */
@@ -2494,7 +2475,6 @@  discard block
 block discarded – undo
2494 2475
      *
2495 2476
      * @category Mathematical and Trigonometric Functions
2496 2477
      *
2497
-     * @param    mixed        $arg,...        Data values
2498 2478
      * @param    string        $condition        the criteria that defines which cells will be checked
2499 2479
      * @param mixed $aArgs
2500 2480
      * @param mixed $sumArgs
@@ -2574,7 +2554,6 @@  discard block
 block discarded – undo
2574 2554
      *
2575 2555
      * @category Statistical Functions
2576 2556
      *
2577
-     * @param    mixed        $arg,...        Data values
2578 2557
      *
2579 2558
      * @return    float
2580 2559
      */
@@ -2748,8 +2727,6 @@  discard block
 block discarded – undo
2748 2727
      *
2749 2728
      * @category Statistical Functions
2750 2729
      *
2751
-     * @param    mixed        $arg,...        Data values
2752
-     * @param    float        $entry            Percentile value in the range 0..1, inclusive.
2753 2730
      *
2754 2731
      * @return    float
2755 2732
      */
@@ -2800,7 +2777,7 @@  discard block
 block discarded – undo
2800 2777
      * @param    number                the number of significant digits for the returned percentage value
2801 2778
      * @param mixed $valueSet
2802 2779
      * @param mixed $value
2803
-     * @param mixed $significance
2780
+     * @param integer $significance
2804 2781
      *
2805 2782
      * @return    float
2806 2783
      */
@@ -2920,8 +2897,6 @@  discard block
 block discarded – undo
2920 2897
      *
2921 2898
      * @category Statistical Functions
2922 2899
      *
2923
-     * @param    mixed        $arg,...        Data values
2924
-     * @param    int            $entry            Quartile value in the range 1..3, inclusive.
2925 2900
      *
2926 2901
      * @return    float
2927 2902
      */
@@ -2954,7 +2929,7 @@  discard block
 block discarded – undo
2954 2929
      * @param    mixed                Order to sort the values in the value set
2955 2930
      * @param mixed $value
2956 2931
      * @param mixed $valueSet
2957
-     * @param mixed $order
2932
+     * @param integer $order
2958 2933
      *
2959 2934
      * @return    float
2960 2935
      */
@@ -3095,8 +3070,6 @@  discard block
 block discarded – undo
3095 3070
      *
3096 3071
      * @category Statistical Functions
3097 3072
      *
3098
-     * @param    mixed        $arg,...        Data values
3099
-     * @param    int            $entry            Position (ordered from the smallest) in the array or range of data to return
3100 3073
      *
3101 3074
      * @return    float
3102 3075
      */
@@ -3167,7 +3140,6 @@  discard block
 block discarded – undo
3167 3140
      *
3168 3141
      * @category Statistical Functions
3169 3142
      *
3170
-     * @param    mixed        $arg,...        Data values
3171 3143
      *
3172 3144
      * @return    float
3173 3145
      */
@@ -3216,7 +3188,6 @@  discard block
 block discarded – undo
3216 3188
      *
3217 3189
      * @category Statistical Functions
3218 3190
      *
3219
-     * @param    mixed        $arg,...        Data values
3220 3191
      *
3221 3192
      * @return    float
3222 3193
      */
@@ -3268,7 +3239,6 @@  discard block
 block discarded – undo
3268 3239
      *
3269 3240
      * @category Statistical Functions
3270 3241
      *
3271
-     * @param    mixed        $arg,...        Data values
3272 3242
      *
3273 3243
      * @return    float
3274 3244
      */
@@ -3315,7 +3285,6 @@  discard block
 block discarded – undo
3315 3285
      *
3316 3286
      * @category Statistical Functions
3317 3287
      *
3318
-     * @param    mixed        $arg,...        Data values
3319 3288
      *
3320 3289
      * @return    float
3321 3290
      */
@@ -3559,8 +3528,6 @@  discard block
 block discarded – undo
3559 3528
      *
3560 3529
      * @category Statistical Functions
3561 3530
      *
3562
-     * @param    mixed        $arg,...        Data values
3563
-     * @param    float        $discard        Percentage to discard
3564 3531
      *
3565 3532
      * @return    float
3566 3533
      */
@@ -3605,7 +3572,6 @@  discard block
 block discarded – undo
3605 3572
      *
3606 3573
      * @category Statistical Functions
3607 3574
      *
3608
-     * @param    mixed        $arg,...        Data values
3609 3575
      *
3610 3576
      * @return    float
3611 3577
      */
@@ -3649,7 +3615,6 @@  discard block
 block discarded – undo
3649 3615
      *
3650 3616
      * @category Statistical Functions
3651 3617
      *
3652
-     * @param    mixed        $arg,...        Data values
3653 3618
      *
3654 3619
      * @return    float
3655 3620
      */
@@ -3702,7 +3667,6 @@  discard block
 block discarded – undo
3702 3667
      *
3703 3668
      * @category Statistical Functions
3704 3669
      *
3705
-     * @param    mixed        $arg,...        Data values
3706 3670
      *
3707 3671
      * @return    float
3708 3672
      */
@@ -3747,7 +3711,6 @@  discard block
 block discarded – undo
3747 3711
      *
3748 3712
      * @category Statistical Functions
3749 3713
      *
3750
-     * @param    mixed        $arg,...        Data values
3751 3714
      *
3752 3715
      * @return    float
3753 3716
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/DataSeriesValues.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,9 +80,9 @@
 block discarded – undo
80 80
      * Create a new DataSeriesValues object.
81 81
      *
82 82
      * @param string $dataSource
83
-     * @param mixed $dataType
83
+     * @param string $dataType
84 84
      * @param null|mixed $formatCode
85
-     * @param mixed $pointCount
85
+     * @param integer $pointCount
86 86
      * @param mixed $dataValues
87 87
      * @param null|mixed $marker
88 88
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/PlotArea.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     /**
65 65
      * Get Number of Plot Groups.
66 66
      *
67
-     * @return array of DataSeries
67
+     * @return integer of DataSeries
68 68
      */
69 69
     public function getPlotGroupCount()
70 70
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xlsx/Theme.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * Create a new Theme.
59 59
      *
60
-     * @param mixed $themeName
61
-     * @param mixed $colourSchemeName
60
+     * @param string $themeName
61
+     * @param string $colourSchemeName
62 62
      * @param mixed $colourMap
63 63
      */
64 64
     public function __construct($themeName, $colourSchemeName, $colourMap)
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     /**
93 93
      * Get colour Map Value by Position.
94 94
      *
95
-     * @param mixed $index
95
+     * @param integer $index
96 96
      *
97 97
      * @return string
98 98
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/JAMA/LUDecomposition.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@
 block discarded – undo
241 241
     /**
242 242
      *    Solve A*X = B.
243 243
      *
244
-     *    @param  $B  a Matrix with as many rows as A and any number of columns
244
+     *    @param  Matrix $B  a Matrix with as many rows as A and any number of columns
245 245
      *
246 246
      *    @throws \PhpOffice\PhpSpreadsheet\Calculation\Exception  illegalArgumentException Matrix row dimensions must agree
247 247
      *    @throws \PhpOffice\PhpSpreadsheet\Calculation\Exception  runtimeException  Matrix is singular
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/OLE/PPS/Root.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * If a resource pointer to a stream created by fopen() is passed
57 57
      * it will be used, but you have to close such stream by yourself.
58 58
      *
59
-     * @param string|resource $filename the name of the file or stream where to save the OLE container
59
+     * @param string|null $filename the name of the file or stream where to save the OLE container
60 60
      *
61 61
      * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
62 62
      *
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      *
122 122
      * @param array $raList Reference to an array of PPS's
123 123
      *
124
-     * @return float[] The array of numbers
124
+     * @return double[] The array of numbers
125 125
      */
126 126
     public function _calcSize(&$raList)
127 127
     {
Please login to merge, or discard this patch.