@@ -472,7 +472,7 @@ |
||
472 | 472 | * |
473 | 473 | * @param int $pValue Sheet index |
474 | 474 | * |
475 | - * @return SYLK |
|
475 | + * @return Slk |
|
476 | 476 | */ |
477 | 477 | public function setSheetIndex($pValue) |
478 | 478 | { |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * |
32 | 32 | * @param int $pValue Value in pixels |
33 | 33 | * |
34 | - * @return int Value in EMU |
|
34 | + * @return double Value in EMU |
|
35 | 35 | */ |
36 | 36 | public static function pixelsToEMU($pValue) |
37 | 37 | { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * Class constructor - decomposes symmetric positive definite matrix |
47 | 47 | * |
48 | 48 | * @param mixed Matrix square symmetric positive definite matrix |
49 | - * @param null|mixed $A |
|
49 | + * @param Matrix $A |
|
50 | 50 | */ |
51 | 51 | public function __construct(Matrix $A) |
52 | 52 | { |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * set ribbon XML data. |
219 | 219 | * |
220 | 220 | * @param null|mixed $target |
221 | - * @param null|mixed $xmlData |
|
221 | + * @param string $xmlData |
|
222 | 222 | */ |
223 | 223 | public function setRibbonXMLData($target, $xmlData) |
224 | 224 | { |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | /** |
286 | 286 | * retrieve Binaries Ribbon Objects. |
287 | 287 | * |
288 | - * @param mixed $what |
|
288 | + * @param string $what |
|
289 | 289 | */ |
290 | 290 | public function getRibbonBinObjects($what = 'all') |
291 | 291 | { |
@@ -471,7 +471,7 @@ discard block |
||
471 | 471 | /** |
472 | 472 | * Set Columns to repeat at left. |
473 | 473 | * |
474 | - * @param array $pValue Containing start column and end column, empty array if option unset |
|
474 | + * @param string[] $pValue Containing start column and end column, empty array if option unset |
|
475 | 475 | * |
476 | 476 | * @return PageSetup |
477 | 477 | */ |
@@ -526,7 +526,7 @@ discard block |
||
526 | 526 | /** |
527 | 527 | * Set Rows to repeat at top. |
528 | 528 | * |
529 | - * @param array $pValue Containing start column and end column, empty array if option unset |
|
529 | + * @param string[] $pValue Containing start column and end column, empty array if option unset |
|
530 | 530 | * |
531 | 531 | * @return PageSetup |
532 | 532 | */ |
@@ -62,6 +62,10 @@ discard block |
||
62 | 62 | return $testDate->format('d') == 1; |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param integer $frequency |
|
67 | + * @param boolean $next |
|
68 | + */ |
|
65 | 69 | private static function couponFirstPeriodDate($settlement, $maturity, $frequency, $next) |
66 | 70 | { |
67 | 71 | $months = 12 / $frequency; |
@@ -83,6 +87,9 @@ discard block |
||
83 | 87 | return Date::PHPToExcel($result); |
84 | 88 | } |
85 | 89 | |
90 | + /** |
|
91 | + * @param integer $frequency |
|
92 | + */ |
|
86 | 93 | private static function isValidFrequency($frequency) |
87 | 94 | { |
88 | 95 | if (($frequency == 1) || ($frequency == 2) || ($frequency == 4)) { |
@@ -161,7 +168,7 @@ discard block |
||
161 | 168 | * The security settlement date is the date after the issue date |
162 | 169 | * when the security is traded to the buyer. |
163 | 170 | * @param float $rate the security's annual coupon rate |
164 | - * @param float $par The security's par value. |
|
171 | + * @param integer $par The security's par value. |
|
165 | 172 | * If you omit par, ACCRINT uses $1,000. |
166 | 173 | * @param int $frequency the number of coupon payments per year. |
167 | 174 | * Valid frequency values are: |
@@ -234,8 +241,8 @@ discard block |
||
234 | 241 | * @param mixed $issue |
235 | 242 | * @param mixed $settlement |
236 | 243 | * @param mixed $rate |
237 | - * @param mixed $par |
|
238 | - * @param mixed $basis |
|
244 | + * @param integer $par |
|
245 | + * @param integer $basis |
|
239 | 246 | * |
240 | 247 | * @return float |
241 | 248 | */ |
@@ -301,7 +308,7 @@ discard block |
||
301 | 308 | * @param mixed $salvage |
302 | 309 | * @param mixed $period |
303 | 310 | * @param mixed $rate |
304 | - * @param mixed $basis |
|
311 | + * @param integer $basis |
|
305 | 312 | * |
306 | 313 | * @return float |
307 | 314 | */ |
@@ -386,7 +393,7 @@ discard block |
||
386 | 393 | * @param mixed $salvage |
387 | 394 | * @param mixed $period |
388 | 395 | * @param mixed $rate |
389 | - * @param mixed $basis |
|
396 | + * @param integer $basis |
|
390 | 397 | * |
391 | 398 | * @return float |
392 | 399 | */ |
@@ -456,8 +463,8 @@ discard block |
||
456 | 463 | * 4 European 30/360 |
457 | 464 | * @param mixed $settlement |
458 | 465 | * @param mixed $maturity |
459 | - * @param mixed $frequency |
|
460 | - * @param mixed $basis |
|
466 | + * @param integer $frequency |
|
467 | + * @param integer $basis |
|
461 | 468 | * |
462 | 469 | * @return float |
463 | 470 | */ |
@@ -520,7 +527,7 @@ discard block |
||
520 | 527 | * @param int $frequency |
521 | 528 | * @param mixed $settlement |
522 | 529 | * @param mixed $maturity |
523 | - * @param mixed $basis |
|
530 | + * @param integer $basis |
|
524 | 531 | * |
525 | 532 | * @return float |
526 | 533 | */ |
@@ -599,8 +606,8 @@ discard block |
||
599 | 606 | * 4 European 30/360 |
600 | 607 | * @param mixed $settlement |
601 | 608 | * @param mixed $maturity |
602 | - * @param mixed $frequency |
|
603 | - * @param mixed $basis |
|
609 | + * @param integer $frequency |
|
610 | + * @param integer $basis |
|
604 | 611 | * |
605 | 612 | * @return float |
606 | 613 | */ |
@@ -663,7 +670,7 @@ discard block |
||
663 | 670 | * @param mixed $settlement |
664 | 671 | * @param mixed $maturity |
665 | 672 | * @param mixed $frequency |
666 | - * @param mixed $basis |
|
673 | + * @param integer $basis |
|
667 | 674 | * |
668 | 675 | * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, |
669 | 676 | * depending on the value of the ReturnDateType flag |
@@ -724,8 +731,8 @@ discard block |
||
724 | 731 | * 4 European 30/360 |
725 | 732 | * @param mixed $settlement |
726 | 733 | * @param mixed $maturity |
727 | - * @param mixed $frequency |
|
728 | - * @param mixed $basis |
|
734 | + * @param integer $frequency |
|
735 | + * @param integer $basis |
|
729 | 736 | * |
730 | 737 | * @return int |
731 | 738 | */ |
@@ -801,7 +808,7 @@ discard block |
||
801 | 808 | * @param mixed $settlement |
802 | 809 | * @param mixed $maturity |
803 | 810 | * @param mixed $frequency |
804 | - * @param mixed $basis |
|
811 | + * @param integer $basis |
|
805 | 812 | * |
806 | 813 | * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, |
807 | 814 | * depending on the value of the ReturnDateType flag |
@@ -953,7 +960,7 @@ discard block |
||
953 | 960 | * @param mixed $salvage |
954 | 961 | * @param mixed $life |
955 | 962 | * @param mixed $period |
956 | - * @param mixed $month |
|
963 | + * @param integer $month |
|
957 | 964 | * |
958 | 965 | * @return float |
959 | 966 | */ |
@@ -1028,7 +1035,7 @@ discard block |
||
1028 | 1035 | * @param mixed $salvage |
1029 | 1036 | * @param mixed $life |
1030 | 1037 | * @param mixed $period |
1031 | - * @param mixed $factor |
|
1038 | + * @param double $factor |
|
1032 | 1039 | * |
1033 | 1040 | * @return float |
1034 | 1041 | */ |
@@ -1097,7 +1104,7 @@ discard block |
||
1097 | 1104 | * @param mixed $maturity |
1098 | 1105 | * @param mixed $price |
1099 | 1106 | * @param mixed $redemption |
1100 | - * @param mixed $basis |
|
1107 | + * @param integer $basis |
|
1101 | 1108 | * |
1102 | 1109 | * @return float |
1103 | 1110 | */ |
@@ -1216,7 +1223,7 @@ discard block |
||
1216 | 1223 | * |
1217 | 1224 | * @category Financial Functions |
1218 | 1225 | * |
1219 | - * @param float $nominal_rate Nominal interest rate |
|
1226 | + * @param integer $nominal_rate Nominal interest rate |
|
1220 | 1227 | * @param int $npery Number of compounding payments per year |
1221 | 1228 | * |
1222 | 1229 | * @return float |
@@ -1244,12 +1251,12 @@ discard block |
||
1244 | 1251 | * |
1245 | 1252 | * @category Financial Functions |
1246 | 1253 | * |
1247 | - * @param float $rate The interest rate per period |
|
1254 | + * @param integer $rate The interest rate per period |
|
1248 | 1255 | * @param int $nper Total number of payment periods in an annuity |
1249 | - * @param float $pmt The payment made each period: it cannot change over the |
|
1256 | + * @param integer $pmt The payment made each period: it cannot change over the |
|
1250 | 1257 | * life of the annuity. Typically, pmt contains principal |
1251 | 1258 | * and interest but no other fees or taxes. |
1252 | - * @param float $pv present Value, or the lump-sum amount that a series of |
|
1259 | + * @param integer $pv present Value, or the lump-sum amount that a series of |
|
1253 | 1260 | * future payments is worth right now |
1254 | 1261 | * @param int $type A number 0 or 1 and indicates when payments are due: |
1255 | 1262 | * 0 or omitted At the end of the period. |
@@ -1367,7 +1374,7 @@ discard block |
||
1367 | 1374 | * @param int $per Period for which we want to find the interest |
1368 | 1375 | * @param int $nper Number of periods |
1369 | 1376 | * @param float $pv Present Value |
1370 | - * @param float $fv Future Value |
|
1377 | + * @param integer $fv Future Value |
|
1371 | 1378 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1372 | 1379 | * |
1373 | 1380 | * @return float |
@@ -1562,7 +1569,7 @@ discard block |
||
1562 | 1569 | * |
1563 | 1570 | * Returns the nominal interest rate given the effective rate and the number of compounding payments per year. |
1564 | 1571 | * |
1565 | - * @param float $effect_rate Effective interest rate |
|
1572 | + * @param integer $effect_rate Effective interest rate |
|
1566 | 1573 | * @param int $npery Number of compounding payments per year |
1567 | 1574 | * |
1568 | 1575 | * @return float |
@@ -1586,10 +1593,10 @@ discard block |
||
1586 | 1593 | * |
1587 | 1594 | * Returns the number of periods for a cash flow with constant periodic payments (annuities), and interest rate. |
1588 | 1595 | * |
1589 | - * @param float $rate Interest rate per period |
|
1596 | + * @param integer $rate Interest rate per period |
|
1590 | 1597 | * @param int $pmt Periodic payment (annuity) |
1591 | - * @param float $pv Present Value |
|
1592 | - * @param float $fv Future Value |
|
1598 | + * @param integer $pv Present Value |
|
1599 | + * @param integer $fv Future Value |
|
1593 | 1600 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1594 | 1601 | * |
1595 | 1602 | * @return float |
@@ -1655,10 +1662,10 @@ discard block |
||
1655 | 1662 | * |
1656 | 1663 | * Returns the constant payment (annuity) for a cash flow with a constant interest rate. |
1657 | 1664 | * |
1658 | - * @param float $rate Interest rate per period |
|
1665 | + * @param integer $rate Interest rate per period |
|
1659 | 1666 | * @param int $nper Number of periods |
1660 | - * @param float $pv Present Value |
|
1661 | - * @param float $fv Future Value |
|
1667 | + * @param integer $pv Present Value |
|
1668 | + * @param integer $fv Future Value |
|
1662 | 1669 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1663 | 1670 | * |
1664 | 1671 | * @return float |
@@ -1693,7 +1700,7 @@ discard block |
||
1693 | 1700 | * @param int $per Period for which we want to find the interest |
1694 | 1701 | * @param int $nper Number of periods |
1695 | 1702 | * @param float $pv Present Value |
1696 | - * @param float $fv Future Value |
|
1703 | + * @param integer $fv Future Value |
|
1697 | 1704 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1698 | 1705 | * |
1699 | 1706 | * @return float |
@@ -1783,7 +1790,7 @@ discard block |
||
1783 | 1790 | * @param mixed $maturity |
1784 | 1791 | * @param mixed $discount |
1785 | 1792 | * @param mixed $redemption |
1786 | - * @param mixed $basis |
|
1793 | + * @param integer $basis |
|
1787 | 1794 | * |
1788 | 1795 | * @return float |
1789 | 1796 | */ |
@@ -1835,7 +1842,7 @@ discard block |
||
1835 | 1842 | * @param mixed $issue |
1836 | 1843 | * @param mixed $rate |
1837 | 1844 | * @param mixed $yield |
1838 | - * @param mixed $basis |
|
1845 | + * @param integer $basis |
|
1839 | 1846 | * |
1840 | 1847 | * @return float |
1841 | 1848 | */ |
@@ -1889,10 +1896,10 @@ discard block |
||
1889 | 1896 | * |
1890 | 1897 | * Returns the Present Value of a cash flow with constant payments and interest rate (annuities). |
1891 | 1898 | * |
1892 | - * @param float $rate Interest rate per period |
|
1899 | + * @param integer $rate Interest rate per period |
|
1893 | 1900 | * @param int $nper Number of periods |
1894 | - * @param float $pmt Periodic payment (annuity) |
|
1895 | - * @param float $fv Future Value |
|
1901 | + * @param integer $pmt Periodic payment (annuity) |
|
1902 | + * @param integer $fv Future Value |
|
1896 | 1903 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1897 | 1904 | * |
1898 | 1905 | * @return float |
@@ -1949,9 +1956,9 @@ discard block |
||
1949 | 1956 | * @param mixed $nper |
1950 | 1957 | * @param mixed $pmt |
1951 | 1958 | * @param mixed $pv |
1952 | - * @param mixed $fv |
|
1953 | - * @param mixed $type |
|
1954 | - * @param mixed $guess |
|
1959 | + * @param double $fv |
|
1960 | + * @param integer $type |
|
1961 | + * @param double $guess |
|
1955 | 1962 | * |
1956 | 1963 | * @return float |
1957 | 1964 | **/ |
@@ -2020,7 +2027,7 @@ discard block |
||
2020 | 2027 | * @param mixed $maturity |
2021 | 2028 | * @param mixed $investment |
2022 | 2029 | * @param mixed $discount |
2023 | - * @param mixed $basis |
|
2030 | + * @param integer $basis |
|
2024 | 2031 | * |
2025 | 2032 | * @return float |
2026 | 2033 | */ |
@@ -2390,7 +2397,7 @@ discard block |
||
2390 | 2397 | * @param mixed $maturity |
2391 | 2398 | * @param mixed $price |
2392 | 2399 | * @param mixed $redemption |
2393 | - * @param mixed $basis |
|
2400 | + * @param integer $basis |
|
2394 | 2401 | * |
2395 | 2402 | * @return float |
2396 | 2403 | */ |
@@ -2447,7 +2454,7 @@ discard block |
||
2447 | 2454 | * @param mixed $issue |
2448 | 2455 | * @param mixed $rate |
2449 | 2456 | * @param mixed $price |
2450 | - * @param mixed $basis |
|
2457 | + * @param integer $basis |
|
2451 | 2458 | * |
2452 | 2459 | * @return float |
2453 | 2460 | */ |
@@ -808,6 +808,9 @@ |
||
808 | 808 | return $styleArray; |
809 | 809 | } |
810 | 810 | |
811 | + /** |
|
812 | + * @param string $is |
|
813 | + */ |
|
811 | 814 | private function parseRichText($is) |
812 | 815 | { |
813 | 816 | $value = new RichText(); |
@@ -233,6 +233,9 @@ discard block |
||
233 | 233 | return $this->loadIntoExisting($pFilename, $spreadsheet); |
234 | 234 | } |
235 | 235 | |
236 | + /** |
|
237 | + * @param string $styleAttributeValue |
|
238 | + */ |
|
236 | 239 | protected static function identifyFixedStyleValue($styleList, &$styleAttributeValue) |
237 | 240 | { |
238 | 241 | $styleAttributeValue = strtolower($styleAttributeValue); |
@@ -764,6 +767,9 @@ discard block |
||
764 | 767 | return $spreadsheet; |
765 | 768 | } |
766 | 769 | |
770 | + /** |
|
771 | + * @param string $charset |
|
772 | + */ |
|
767 | 773 | protected static function convertStringEncoding($string, $charset) |
768 | 774 | { |
769 | 775 | if ($charset != 'UTF-8') { |
@@ -773,6 +779,9 @@ discard block |
||
773 | 779 | return $string; |
774 | 780 | } |
775 | 781 | |
782 | + /** |
|
783 | + * @param string $is |
|
784 | + */ |
|
776 | 785 | protected function parseRichText($is) |
777 | 786 | { |
778 | 787 | $value = new RichText(); |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * |
39 | 39 | * @param row Row number to use in the cell reference |
40 | 40 | * @param column Column number to use in the cell reference |
41 | - * @param relativity Flag indicating the type of reference to return |
|
41 | + * @param relativity integer indicating the type of reference to return |
|
42 | 42 | * 1 or omitted Absolute |
43 | 43 | * 2 Absolute row; relative column |
44 | 44 | * 3 Relative row; absolute column |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @param sheetText Optional Name of worksheet to use |
50 | 50 | * @param mixed $row |
51 | 51 | * @param mixed $column |
52 | - * @param mixed $relativity |
|
52 | + * @param integer $relativity |
|
53 | 53 | * @param mixed $referenceStyle |
54 | 54 | * @param mixed $sheetText |
55 | 55 | * |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | * |
361 | 361 | * @param cellAddress The reference from which you want to base the offset. Reference must refer to a cell or |
362 | 362 | * range of adjacent cells; otherwise, OFFSET returns the #VALUE! error value. |
363 | - * @param rows The number of rows, up or down, that you want the upper-left cell to refer to. |
|
363 | + * @param rows integer number of rows, up or down, that you want the upper-left cell to refer to. |
|
364 | 364 | * Using 5 as the rows argument specifies that the upper-left cell in the reference is |
365 | 365 | * five rows below reference. Rows can be positive (which means below the starting reference) |
366 | 366 | * or negative (which means above the starting reference). |
@@ -372,8 +372,8 @@ discard block |
||
372 | 372 | * @param height The height, in number of rows, that you want the returned reference to be. Height must be a positive number. |
373 | 373 | * @param width The width, in number of columns, that you want the returned reference to be. Width must be a positive number. |
374 | 374 | * @param null|mixed $cellAddress |
375 | - * @param mixed $rows |
|
376 | - * @param mixed $columns |
|
375 | + * @param integer $rows |
|
376 | + * @param integer $columns |
|
377 | 377 | * @param null|mixed $height |
378 | 378 | * @param null|mixed $width |
379 | 379 | * @param Cell $pCell |
@@ -501,7 +501,7 @@ discard block |
||
501 | 501 | * |
502 | 502 | * @param mixed $lookupValue The value that you want to match in lookup_array |
503 | 503 | * @param mixed $lookupArray The range of cells being searched |
504 | - * @param mixed $matchType 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. |
|
504 | + * @param integer $matchType 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. |
|
505 | 505 | * |
506 | 506 | * @return int The relative position of the found item |
507 | 507 | */ |
@@ -615,8 +615,8 @@ discard block |
||
615 | 615 | * @param row_num The row in array from which to return a value. If row_num is omitted, column_num is required. |
616 | 616 | * @param column_num The column in array from which to return a value. If column_num is omitted, row_num is required. |
617 | 617 | * @param mixed $arrayValues |
618 | - * @param mixed $rowNum |
|
619 | - * @param mixed $columnNum |
|
618 | + * @param integer $rowNum |
|
619 | + * @param integer $columnNum |
|
620 | 620 | * |
621 | 621 | * @return mixed the value of a specified cell or array of cells |
622 | 622 | */ |
@@ -712,11 +712,11 @@ discard block |
||
712 | 712 | * |
713 | 713 | * @param lookup_value The value that you want to match in lookup_array |
714 | 714 | * @param lookup_array The range of cells being searched |
715 | - * @param index_number The column number in table_array from which the matching value must be returned. The first column is 1. |
|
715 | + * @param index_number integer column number in table_array from which the matching value must be returned. The first column is 1. |
|
716 | 716 | * @param not_exact_match determines if you are looking for an exact match based on lookup_value |
717 | 717 | * @param mixed $lookup_value |
718 | 718 | * @param mixed $lookup_array |
719 | - * @param mixed $index_number |
|
719 | + * @param integer $index_number |
|
720 | 720 | * @param mixed $not_exact_match |
721 | 721 | * |
722 | 722 | * @return mixed The value of the found cell |