Completed
Pull Request — develop (#80)
by
unknown
31:02
created
src/PhpSpreadsheet/Calculation/DateTime.php 1 patch
Doc Comments   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
      *
472 472
      * @category Date/Time Functions
473 473
      *
474
-     * @param string $dateValue Text that represents a date in a Microsoft Excel date format.
474
+     * @param integer $dateValue Text that represents a date in a Microsoft Excel date format.
475 475
      *                                    For example, "1/30/2008" or "30-Jan-2008" are text strings within
476 476
      *                                    quotation marks that represent dates. Using the default date
477 477
      *                                    system in Excel for Windows, date_text must represent a date from
@@ -657,9 +657,9 @@  discard block
 block discarded – undo
657 657
     /**
658 658
      * DATEDIF.
659 659
      *
660
-     * @param mixed $startDate Excel date serial value, PHP date/time stamp, PHP DateTime object
660
+     * @param integer $startDate Excel date serial value, PHP date/time stamp, PHP DateTime object
661 661
      *                                    or a standard date string
662
-     * @param mixed $endDate Excel date serial value, PHP date/time stamp, PHP DateTime object
662
+     * @param integer $endDate Excel date serial value, PHP date/time stamp, PHP DateTime object
663 663
      *                                    or a standard date string
664 664
      * @param string $unit
665 665
      *
@@ -783,9 +783,9 @@  discard block
 block discarded – undo
783 783
      *
784 784
      * @category Date/Time Functions
785 785
      *
786
-     * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer),
786
+     * @param integer $startDate Excel date serial value (float), PHP date timestamp (integer),
787 787
      *                                        PHP DateTime object, or a standard date string
788
-     * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer),
788
+     * @param integer $endDate Excel date serial value (float), PHP date timestamp (integer),
789 789
      *                                        PHP DateTime object, or a standard date string
790 790
      * @param bool $method US or European Method
791 791
      *                                        FALSE or omitted: U.S. (NASD) method. If the starting date is
@@ -844,9 +844,9 @@  discard block
 block discarded – undo
844 844
      *
845 845
      * @category Date/Time Functions
846 846
      *
847
-     * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer),
847
+     * @param integer $startDate Excel date serial value (float), PHP date timestamp (integer),
848 848
      *                                    PHP DateTime object, or a standard date string
849
-     * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer),
849
+     * @param integer $endDate Excel date serial value (float), PHP date timestamp (integer),
850 850
      *                                    PHP DateTime object, or a standard date string
851 851
      * @param int $method Method used for the calculation
852 852
      *                                        0 or omitted    US (NASD) 30/360
@@ -1135,7 +1135,7 @@  discard block
 block discarded – undo
1135 1135
      * Excel Function:
1136 1136
      *        DAY(dateValue)
1137 1137
      *
1138
-     * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
1138
+     * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer),
1139 1139
      *                                    PHP DateTime object, or a standard date string
1140 1140
      *
1141 1141
      * @return int Day of the month
@@ -1246,7 +1246,7 @@  discard block
 block discarded – undo
1246 1246
      * Excel Function:
1247 1247
      *        WEEKNUM(dateValue[,style])
1248 1248
      *
1249
-     * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
1249
+     * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer),
1250 1250
      *                                    PHP DateTime object, or a standard date string
1251 1251
      * @param int $method Week begins on Sunday or Monday
1252 1252
      *                                        1 or omitted    Week begins on Sunday.
@@ -1299,7 +1299,7 @@  discard block
 block discarded – undo
1299 1299
      * Excel Function:
1300 1300
      *        MONTH(dateValue)
1301 1301
      *
1302
-     * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
1302
+     * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer),
1303 1303
      *                                    PHP DateTime object, or a standard date string
1304 1304
      *
1305 1305
      * @return int Month of the year
@@ -1332,7 +1332,7 @@  discard block
 block discarded – undo
1332 1332
      * Excel Function:
1333 1333
      *        YEAR(dateValue)
1334 1334
      *
1335
-     * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
1335
+     * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer),
1336 1336
      *                                    PHP DateTime object, or a standard date string
1337 1337
      *
1338 1338
      * @return int Year
@@ -1364,7 +1364,7 @@  discard block
 block discarded – undo
1364 1364
      * Excel Function:
1365 1365
      *        HOUR(timeValue)
1366 1366
      *
1367
-     * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer),
1367
+     * @param integer $timeValue Excel date serial value (float), PHP date timestamp (integer),
1368 1368
      *                                    PHP DateTime object, or a standard time string
1369 1369
      *
1370 1370
      * @return int Hour
@@ -1405,7 +1405,7 @@  discard block
 block discarded – undo
1405 1405
      * Excel Function:
1406 1406
      *        MINUTE(timeValue)
1407 1407
      *
1408
-     * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer),
1408
+     * @param integer $timeValue Excel date serial value (float), PHP date timestamp (integer),
1409 1409
      *                                    PHP DateTime object, or a standard time string
1410 1410
      *
1411 1411
      * @return int Minute
@@ -1446,7 +1446,7 @@  discard block
 block discarded – undo
1446 1446
      * Excel Function:
1447 1447
      *        SECOND(timeValue)
1448 1448
      *
1449
-     * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer),
1449
+     * @param integer $timeValue Excel date serial value (float), PHP date timestamp (integer),
1450 1450
      *                                    PHP DateTime object, or a standard time string
1451 1451
      *
1452 1452
      * @return int Second
@@ -1489,7 +1489,7 @@  discard block
 block discarded – undo
1489 1489
      * Excel Function:
1490 1490
      *        EDATE(dateValue,adjustmentMonths)
1491 1491
      *
1492
-     * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
1492
+     * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer),
1493 1493
      *                                        PHP DateTime object, or a standard date string
1494 1494
      * @param int $adjustmentMonths The number of months before or after start_date.
1495 1495
      *                                        A positive value for months yields a future date;
@@ -1535,7 +1535,7 @@  discard block
 block discarded – undo
1535 1535
      * Excel Function:
1536 1536
      *        EOMONTH(dateValue,adjustmentMonths)
1537 1537
      *
1538
-     * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
1538
+     * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer),
1539 1539
      *                                        PHP DateTime object, or a standard date string
1540 1540
      * @param int $adjustmentMonths The number of months before or after start_date.
1541 1541
      *                                        A positive value for months yields a future date;
Please login to merge, or discard this patch.
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/TextData.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
      * This function converts a number to text using currency format, with the decimals rounded to the specified place.
170 170
      * The format used is $#,##0.00_);($#,##0.00)..
171 171
      *
172
-     * @param float $value The value to format
172
+     * @param integer $value The value to format
173 173
      * @param int $decimals The number of digits to display to the right of the decimal point.
174 174
      *                                    If decimals is negative, number is rounded to the left of the decimal point.
175 175
      *                                    If you omit decimals, it is assumed to be 2
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Date.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     /**
168 168
      * Convert a MS serialized datetime value from Excel to a PHP Date/Time object.
169 169
      *
170
-     * @param int|float $excelTimestamp MS Excel serialized date/time value
170
+     * @param integer $excelTimestamp MS Excel serialized date/time value
171 171
      * @param \DateTimeZone|string|null $timeZone The timezone to assume for the Excel timestamp,
172 172
      *                                                                        if you don't want to treat it as a UTC value
173 173
      *                                                                    Use the default (UST) unless you absolutely need a conversion
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     /**
209 209
      * Convert a MS serialized datetime value from Excel to a unix timestamp.
210 210
      *
211
-     * @param int|float $excelTimestamp MS Excel serialized date/time value
211
+     * @param integer $excelTimestamp MS Excel serialized date/time value
212 212
      * @param \DateTimeZone|string|null $timeZone The timezone to assume for the Excel timestamp,
213 213
      *                                                                        if you don't want to treat it as a UTC value
214 214
      *                                                                    Use the default (UST) unless you absolutely need a conversion
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     /**
227 227
      * Convert a date from PHP to an MS Excel serialized date/time value.
228 228
      *
229
-     * @param mixed $dateValue Unix Timestamp or PHP DateTime object or a string
229
+     * @param integer $dateValue Unix Timestamp or PHP DateTime object or a string
230 230
      *
231 231
      * @return float|bool Excel date/time value
232 232
      *                                  or boolean FALSE on failure
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
     /**
267 267
      * Convert a Unix timestamp to an MS Excel serialized date/time value.
268 268
      *
269
-     * @param \DateTimeInterface $dateValue Unix Timestamp
269
+     * @param integer $dateValue Unix Timestamp
270 270
      *
271 271
      * @return float MS Excel serialized date/time value
272 272
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Font.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@
 block discarded – undo
236 236
      * Calculate an (approximate) OpenXML column width, based on font size and text contained.
237 237
      *
238 238
      * @param \PhpOffice\PhpSpreadsheet\Style\Font $font Font object
239
-     * @param \PhpOffice\PhpSpreadsheet\RichText|string $cellText Text to calculate width
239
+     * @param string $cellText Text to calculate width
240 240
      * @param int $rotation Rotation angle
241 241
      * @param \PhpOffice\PhpSpreadsheet\Style\Font|null $defaultFont Font object
242 242
      *
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/JAMA/EigenvalueDecomposition.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -819,7 +819,7 @@  discard block
 block discarded – undo
819 819
     /**
820 820
      * Return the eigenvector matrix.
821 821
      *
822
-     * @return V
822
+     * @return Matrix
823 823
      */
824 824
     public function getV()
825 825
     {
@@ -849,7 +849,7 @@  discard block
 block discarded – undo
849 849
     /**
850 850
      * Return the block diagonal eigenvalue matrix.
851 851
      *
852
-     * @return D
852
+     * @return Matrix
853 853
      */
854 854
     public function getD()
855 855
     {
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/JAMA/Matrix.php 1 patch
Doc Comments   +2 added lines, -19 removed lines patch added patch discarded remove patch
@@ -149,10 +149,6 @@  discard block
 block discarded – undo
149 149
      *
150 150
      *    Get a submatrix
151 151
      *
152
-     * @param int $i0 Initial row index
153
-     * @param int $iF Final row index
154
-     * @param int $j0 Initial column index
155
-     * @param int $jF Final column index
156 152
      *
157 153
      * @return Matrix Submatrix
158 154
      */
@@ -345,7 +341,7 @@  discard block
 block discarded – undo
345 341
      *
346 342
      * @param int $m Row dimension
347 343
      * @param int $n Column dimension
348
-     * @param mixed $c Diagonal value
344
+     * @param integer $c Diagonal value
349 345
      *
350 346
      * @return Matrix Diagonal matrix
351 347
      */
@@ -429,7 +425,7 @@  discard block
 block discarded – undo
429 425
      *
430 426
      *    Sum of diagonal elements
431 427
      *
432
-     * @return float Sum of diagonal elements
428
+     * @return integer Sum of diagonal elements
433 429
      */
434 430
     public function trace()
435 431
     {
@@ -458,7 +454,6 @@  discard block
 block discarded – undo
458 454
      *
459 455
      *    A + B
460 456
      *
461
-     * @param mixed $B Matrix/Array
462 457
      *
463 458
      * @return Matrix Sum
464 459
      */
@@ -500,7 +495,6 @@  discard block
 block discarded – undo
500 495
      *
501 496
      *    A = A + B
502 497
      *
503
-     * @param mixed $B Matrix/Array
504 498
      *
505 499
      * @return Matrix Sum
506 500
      */
@@ -556,7 +550,6 @@  discard block
 block discarded – undo
556 550
      *
557 551
      *    A - B
558 552
      *
559
-     * @param mixed $B Matrix/Array
560 553
      *
561 554
      * @return Matrix Sum
562 555
      */
@@ -598,7 +591,6 @@  discard block
 block discarded – undo
598 591
      *
599 592
      *    A = A - B
600 593
      *
601
-     * @param mixed $B Matrix/Array
602 594
      *
603 595
      * @return Matrix Sum
604 596
      */
@@ -655,7 +647,6 @@  discard block
 block discarded – undo
655 647
      *    Element-by-element multiplication
656 648
      *    Cij = Aij * Bij
657 649
      *
658
-     * @param mixed $B Matrix/Array
659 650
      *
660 651
      * @return Matrix Matrix Cij
661 652
      */
@@ -698,7 +689,6 @@  discard block
 block discarded – undo
698 689
      *    Element-by-element multiplication
699 690
      *    Aij = Aij * Bij
700 691
      *
701
-     * @param mixed $B Matrix/Array
702 692
      *
703 693
      * @return Matrix Matrix Aij
704 694
      */
@@ -755,7 +745,6 @@  discard block
 block discarded – undo
755 745
      *    Element-by-element right division
756 746
      *    A / B
757 747
      *
758
-     * @param Matrix $B Matrix B
759 748
      *
760 749
      * @return Matrix Division result
761 750
      */
@@ -817,7 +806,6 @@  discard block
 block discarded – undo
817 806
      *    Element-by-element right division
818 807
      *    Aij = Aij / Bij
819 808
      *
820
-     * @param mixed $B Matrix/Array
821 809
      *
822 810
      * @return Matrix Matrix Aij
823 811
      */
@@ -860,7 +848,6 @@  discard block
 block discarded – undo
860 848
      *    Element-by-element Left division
861 849
      *    A / B
862 850
      *
863
-     * @param Matrix $B Matrix B
864 851
      *
865 852
      * @return Matrix Division result
866 853
      */
@@ -903,7 +890,6 @@  discard block
 block discarded – undo
903 890
      *    Element-by-element Left division
904 891
      *    Aij = Aij / Bij
905 892
      *
906
-     * @param mixed $B Matrix/Array
907 893
      *
908 894
      * @return Matrix Matrix Aij
909 895
      */
@@ -945,7 +931,6 @@  discard block
 block discarded – undo
945 931
      *
946 932
      *    Matrix multiplication
947 933
      *
948
-     * @param mixed $n Matrix/Array/Scalar
949 934
      *
950 935
      * @return Matrix Product
951 936
      */
@@ -1038,7 +1023,6 @@  discard block
 block discarded – undo
1038 1023
      *
1039 1024
      *    A = A ^ B
1040 1025
      *
1041
-     * @param mixed $B Matrix/Array
1042 1026
      *
1043 1027
      * @return Matrix Sum
1044 1028
      */
@@ -1094,7 +1078,6 @@  discard block
 block discarded – undo
1094 1078
      *
1095 1079
      *    A = A & B
1096 1080
      *
1097
-     * @param mixed $B Matrix/Array
1098 1081
      *
1099 1082
      * @return Matrix Sum
1100 1083
      */
Please login to merge, or discard this patch.