@@ -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 | { |
@@ -56,7 +56,7 @@ discard block |
||
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 $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 |
||
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 | { |
@@ -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 | { |
@@ -580,7 +580,7 @@ discard block |
||
580 | 580 | * |
581 | 581 | * @throws Exception |
582 | 582 | * |
583 | - * @return false|Chart |
|
583 | + * @return Chart |
|
584 | 584 | */ |
585 | 585 | public function getChartByIndex($index) |
586 | 586 | { |
@@ -1089,7 +1089,7 @@ discard block |
||
1089 | 1089 | * @param string $column Return the highest data row for the specified column, |
1090 | 1090 | * or the highest data row of any column if no column letter is passed |
1091 | 1091 | * |
1092 | - * @return string Highest row number that contains data |
|
1092 | + * @return integer Highest row number that contains data |
|
1093 | 1093 | */ |
1094 | 1094 | public function getHighestDataRow($column = null) |
1095 | 1095 | { |
@@ -1141,7 +1141,7 @@ discard block |
||
1141 | 1141 | * Set a cell value. |
1142 | 1142 | * |
1143 | 1143 | * @param string $pCoordinate Coordinate of the cell, eg: 'A1' |
1144 | - * @param mixed $pValue Value of the cell |
|
1144 | + * @param string $pValue Value of the cell |
|
1145 | 1145 | * @param string $pDataType Explicit data type, see Cell\DataType::TYPE_* |
1146 | 1146 | * |
1147 | 1147 | * @return Worksheet |
@@ -1161,7 +1161,6 @@ discard block |
||
1161 | 1161 | * @param int $pRow Numeric row coordinate of the cell |
1162 | 1162 | * @param mixed $pValue Value of the cell |
1163 | 1163 | * @param string $pDataType Explicit data type, see Cell\DataType::TYPE_* |
1164 | - * @param bool $returnCell Return the worksheet (false, default) or the cell (true) |
|
1165 | 1164 | * |
1166 | 1165 | * @return Worksheet |
1167 | 1166 | */ |
@@ -1347,7 +1346,7 @@ discard block |
||
1347 | 1346 | * Get row dimension at a specific row. |
1348 | 1347 | * |
1349 | 1348 | * @param int $pRow Numeric index of the row |
1350 | - * @param mixed $create |
|
1349 | + * @param boolean $create |
|
1351 | 1350 | * |
1352 | 1351 | * @return Worksheet\RowDimension |
1353 | 1352 | */ |
@@ -1373,7 +1372,7 @@ discard block |
||
1373 | 1372 | * Get column dimension at a specific column. |
1374 | 1373 | * |
1375 | 1374 | * @param string $pColumn String index of the column eg: 'A' |
1376 | - * @param mixed $create |
|
1375 | + * @param boolean $create |
|
1377 | 1376 | * |
1378 | 1377 | * @return Worksheet\ColumnDimension |
1379 | 1378 | */ |
@@ -1919,7 +1918,7 @@ discard block |
||
1919 | 1918 | /** |
1920 | 1919 | * Set AutoFilter. |
1921 | 1920 | * |
1922 | - * @param Worksheet\AutoFilter|string $pValue |
|
1921 | + * @param string $pValue |
|
1923 | 1922 | * A simple string containing a Cell range like 'A1:E10' is permitted for backward compatibility |
1924 | 1923 | * |
1925 | 1924 | * @throws Exception |
@@ -2977,11 +2976,11 @@ discard block |
||
2977 | 2976 | * Define the code name of the sheet. |
2978 | 2977 | * |
2979 | 2978 | * @param null|string Same rule as Title minus space not allowed (but, like Excel, change silently space to underscore) |
2980 | - * @param null|mixed $pValue |
|
2979 | + * @param string $pValue |
|
2981 | 2980 | * |
2982 | 2981 | * @throws Exception |
2983 | 2982 | * |
2984 | - * @return objWorksheet |
|
2983 | + * @return Worksheet |
|
2985 | 2984 | */ |
2986 | 2985 | public function setCodeName($pValue) |
2987 | 2986 | { |
@@ -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 | */ |
@@ -1172,7 +1172,7 @@ |
||
1172 | 1172 | * @param \PhpOffice\PhpSpreadsheet\Worksheet $pSheet \PhpOffice\PhpSpreadsheet\Worksheet |
1173 | 1173 | * @param array $pValues Array containing cells in a row |
1174 | 1174 | * @param int $pRow Row number (0-based) |
1175 | - * @param mixed $cellType eg: 'td' |
|
1175 | + * @param string $cellType eg: 'td' |
|
1176 | 1176 | * |
1177 | 1177 | * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception |
1178 | 1178 | * |
@@ -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(); |