Completed
Push — develop ( 031af1...152d39 )
by Adrien
21:40
created
src/PhpSpreadsheet/Calculation/FormulaParser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
      *
120 120
      * @throws Exception
121 121
      *
122
-     * @return string
122
+     * @return FormulaToken
123 123
      */
124 124
     public function getToken($pId = 0)
125 125
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Drawing.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      *
34 34
      * @param int $pValue Value in pixels
35 35
      *
36
-     * @return int Value in EMU
36
+     * @return double Value in EMU
37 37
      */
38 38
     public static function pixelsToEMU($pValue = 0)
39 39
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/ZipArchive.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -387,7 +387,7 @@
 block discarded – undo
387 387
     /**
388 388
      * Get Contiguous
389 389
      *
390
-     * @return bool
390
+     * @return integer
391 391
      */
392 392
     public function getContiguous()
393 393
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation.php 1 patch
Doc Comments   +19 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2075,7 +2075,6 @@  discard block
 block discarded – undo
2075 2075
     /**
2076 2076
      * Unset an instance of this class.
2077 2077
      *
2078
-     * @param Spreadsheet $spreadsheet Injected spreadsheet identifying the instance to unset
2079 2078
      */
2080 2079
     public function __destruct()
2081 2080
     {
@@ -2329,6 +2328,10 @@  discard block
 block discarded – undo
2329 2328
         return false;
2330 2329
     }
2331 2330
 
2331
+    /**
2332
+     * @param string $fromSeparator
2333
+     * @param string $toSeparator
2334
+     */
2332 2335
     public static function translateSeparator($fromSeparator, $toSeparator, $formula, &$inBraces)
2333 2336
     {
2334 2337
         $strlen = mb_strlen($formula);
@@ -2672,6 +2675,9 @@  discard block
 block discarded – undo
2672 2675
         return $result;
2673 2676
     }
2674 2677
 
2678
+    /**
2679
+     * @param string $cellReference
2680
+     */
2675 2681
     public function getValueFromCache($cellReference, &$cellValue)
2676 2682
     {
2677 2683
         // Is calculation cacheing enabled?
@@ -2815,7 +2821,7 @@  discard block
 block discarded – undo
2815 2821
      *
2816 2822
      * @param mixed &$matrix matrix operand
2817 2823
      *
2818
-     * @return int[] An array comprising the number of rows, and number of columns
2824
+     * @return integer[] An array comprising the number of rows, and number of columns
2819 2825
      */
2820 2826
     private static function getMatrixDimensions(&$matrix)
2821 2827
     {
@@ -3000,6 +3006,9 @@  discard block
 block discarded – undo
3000 3006
         }
3001 3007
     }
3002 3008
 
3009
+    /**
3010
+     * @param string $formula
3011
+     */
3003 3012
     private function convertMatrixReferences($formula)
3004 3013
     {
3005 3014
         static $matrixReplaceFrom = ['{', ';', '}'];
@@ -3088,6 +3097,10 @@  discard block
 block discarded – undo
3088 3097
     ];
3089 3098
 
3090 3099
     // Convert infix to postfix notation
3100
+
3101
+    /**
3102
+     * @param string $formula
3103
+     */
3091 3104
     private function _parseFormula($formula, Cell $pCell = null)
3092 3105
     {
3093 3106
         if (($formula = $this->convertMatrixReferences(trim($formula))) === false) {
@@ -3824,6 +3837,9 @@  discard block
 block discarded – undo
3824 3837
         return true;
3825 3838
     }
3826 3839
 
3840
+    /**
3841
+     * @param string|null $cellID
3842
+     */
3827 3843
     private function executeBinaryComparisonOperation($cellID, $operand1, $operand2, $operation, &$stack, $recursingArrays = false)
3828 3844
     {
3829 3845
         //    If we're dealing with matrix operations, we want a matrix result
@@ -3964,7 +3980,7 @@  discard block
 block discarded – undo
3964 3980
 
3965 3981
     /**
3966 3982
      * @param string $matrixFunction
3967
-     * @param mixed $cellID
3983
+     * @param string|null $cellID
3968 3984
      * @param mixed $operand1
3969 3985
      * @param mixed $operand2
3970 3986
      * @param mixed $operation
Please login to merge, or discard this patch.
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/Engineering.php 1 patch
Doc Comments   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1853,7 +1853,7 @@  discard block
 block discarded – undo
1853 1853
      *
1854 1854
      * @param string $complexNumber the complex number for which you want the real coefficient
1855 1855
      *
1856
-     * @return float
1856
+     * @return string
1857 1857
      */
1858 1858
     public static function IMREAL($complexNumber)
1859 1859
     {
@@ -2291,7 +2291,6 @@  discard block
 block discarded – undo
2291 2291
      * Excel Function:
2292 2292
      *        IMSUM(complexNumber[,complexNumber[,...]])
2293 2293
      *
2294
-     * @param string $complexNumber,... Series of complex numbers to add
2295 2294
      *
2296 2295
      * @return string
2297 2296
      */
@@ -2331,7 +2330,6 @@  discard block
 block discarded – undo
2331 2330
      * Excel Function:
2332 2331
      *        IMPRODUCT(complexNumber[,complexNumber[,...]])
2333 2332
      *
2334
-     * @param string $complexNumber,... Series of complex numbers to multiply
2335 2333
      *
2336 2334
      * @return string
2337 2335
      */
@@ -2375,7 +2373,7 @@  discard block
 block discarded – undo
2375 2373
      *        DELTA(a[,b])
2376 2374
      *
2377 2375
      * @param float $a the first number
2378
-     * @param float $b The second number. If omitted, b is assumed to be zero.
2376
+     * @param integer $b The second number. If omitted, b is assumed to be zero.
2379 2377
      *
2380 2378
      * @return int
2381 2379
      */
@@ -2398,7 +2396,7 @@  discard block
 block discarded – undo
2398 2396
      * functions you calculate the count of values that exceed a threshold.
2399 2397
      *
2400 2398
      * @param float $number the value to test against step
2401
-     * @param float $step The threshold value.
2399
+     * @param integer $step The threshold value.
2402 2400
      *                                    If you omit a value for step, GESTEP uses zero.
2403 2401
      *
2404 2402
      * @return int
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/Logical.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,7 +78,6 @@  discard block
 block discarded – undo
78 78
      *
79 79
      * @category Logical Functions
80 80
      *
81
-     * @param mixed $arg,... Data values
82 81
      *
83 82
      * @return string|bool the logical AND of the arguments
84 83
      */
@@ -135,7 +134,6 @@  discard block
 block discarded – undo
135 134
      *
136 135
      * @category Logical Functions
137 136
      *
138
-     * @param mixed $arg,... Data values
139 137
      *
140 138
      * @return string|bool the logical OR of the arguments
141 139
      */
@@ -239,8 +237,8 @@  discard block
 block discarded – undo
239 237
      *
240 238
      * @category Logical Functions
241 239
      *
242
-     * @param mixed $condition Condition to evaluate
243
-     * @param mixed $returnIfTrue Value to return when condition is true
240
+     * @param boolean $condition Condition to evaluate
241
+     * @param integer $returnIfTrue Value to return when condition is true
244 242
      * @param mixed $returnIfFalse Optional value to return when condition is false
245 243
      *
246 244
      * @return mixed The value of returnIfTrue or returnIfFalse determined by condition
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.