@@ -149,10 +149,6 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
1094 | 1078 | * |
1095 | 1079 | * A = A & B |
1096 | 1080 | * |
1097 | - * @param mixed $B Matrix/Array |
|
1098 | 1081 | * |
1099 | 1082 | * @return Matrix Sum |
1100 | 1083 | */ |
@@ -441,7 +441,7 @@ discard block |
||
441 | 441 | /** |
442 | 442 | * Return the left singular vectors. |
443 | 443 | * |
444 | - * @return U |
|
444 | + * @return Matrix |
|
445 | 445 | */ |
446 | 446 | public function getU() |
447 | 447 | { |
@@ -451,7 +451,7 @@ discard block |
||
451 | 451 | /** |
452 | 452 | * Return the right singular vectors. |
453 | 453 | * |
454 | - * @return V |
|
454 | + * @return Matrix |
|
455 | 455 | */ |
456 | 456 | public function getV() |
457 | 457 | { |
@@ -471,7 +471,7 @@ discard block |
||
471 | 471 | /** |
472 | 472 | * Return the diagonal matrix of singular values. |
473 | 473 | * |
474 | - * @return S |
|
474 | + * @return Matrix |
|
475 | 475 | */ |
476 | 476 | public function getS() |
477 | 477 | { |
@@ -436,7 +436,7 @@ |
||
436 | 436 | } // end while |
437 | 437 | } |
438 | 438 | |
439 | - // end constructor |
|
439 | + // end constructor |
|
440 | 440 | |
441 | 441 | /** |
442 | 442 | * Return the left singular vectors. |
@@ -43,7 +43,6 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * Create a new row. |
45 | 45 | * |
46 | - * @param \PhpOffice\PhpSpreadsheet\Worksheet $parent |
|
47 | 46 | * @param int $rowIndex |
48 | 47 | */ |
49 | 48 | public function __construct(\PhpOffice\PhpSpreadsheet\Worksheet $worksheet = null, $rowIndex = 1) |
@@ -87,7 +86,7 @@ discard block |
||
87 | 86 | /** |
88 | 87 | * Returns bound worksheet. |
89 | 88 | * |
90 | - * @return Worksheet |
|
89 | + * @return |
|
91 | 90 | */ |
92 | 91 | public function getWorksheet() |
93 | 92 | { |
@@ -240,8 +240,8 @@ discard block |
||
240 | 240 | * |
241 | 241 | * @param \PhpOffice\PhpSpreadsheet\Style |
242 | 242 | * @param bool Is it a style XF? |
243 | - * @param mixed $style |
|
244 | - * @param mixed $isStyleXf |
|
243 | + * @param \PhpOffice\PhpSpreadsheet\Style $style |
|
244 | + * @param boolean $isStyleXf |
|
245 | 245 | * |
246 | 246 | * @return int Index to XF record |
247 | 247 | */ |
@@ -796,7 +796,7 @@ discard block |
||
796 | 796 | * |
797 | 797 | * @param string $name The name in UTF-8 |
798 | 798 | * @param string $formulaData The binary formula data |
799 | - * @param string $sheetIndex 1-based sheet index the defined name applies to. 0 = global |
|
799 | + * @param integer $sheetIndex 1-based sheet index the defined name applies to. 0 = global |
|
800 | 800 | * @param bool $isBuiltIn Built-in name? |
801 | 801 | * |
802 | 802 | * @return string Complete binary record data |
@@ -1853,7 +1853,7 @@ discard block |
||
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,7 @@ discard block |
||
2291 | 2291 | * Excel Function: |
2292 | 2292 | * IMSUM(complexNumber[,complexNumber[,...]]) |
2293 | 2293 | * |
2294 | - * @param string $complexNumbers Series of complex numbers to add |
|
2294 | + * @param string[] $complexNumbers Series of complex numbers to add |
|
2295 | 2295 | * |
2296 | 2296 | * @return string |
2297 | 2297 | */ |
@@ -2331,7 +2331,7 @@ discard block |
||
2331 | 2331 | * Excel Function: |
2332 | 2332 | * IMPRODUCT(complexNumber[,complexNumber[,...]]) |
2333 | 2333 | * |
2334 | - * @param string $complexNumbers Series of complex numbers to multiply |
|
2334 | + * @param string[] $complexNumbers Series of complex numbers to multiply |
|
2335 | 2335 | * |
2336 | 2336 | * @return string |
2337 | 2337 | */ |
@@ -2375,7 +2375,7 @@ discard block |
||
2375 | 2375 | * DELTA(a[,b]) |
2376 | 2376 | * |
2377 | 2377 | * @param float $a the first number |
2378 | - * @param float $b The second number. If omitted, b is assumed to be zero. |
|
2378 | + * @param integer $b The second number. If omitted, b is assumed to be zero. |
|
2379 | 2379 | * |
2380 | 2380 | * @return int |
2381 | 2381 | */ |
@@ -2398,7 +2398,7 @@ discard block |
||
2398 | 2398 | * functions you calculate the count of values that exceed a threshold. |
2399 | 2399 | * |
2400 | 2400 | * @param float $number the value to test against step |
2401 | - * @param float $step The threshold value. |
|
2401 | + * @param integer $step The threshold value. |
|
2402 | 2402 | * If you omit a value for step, GESTEP uses zero. |
2403 | 2403 | * |
2404 | 2404 | * @return int |
@@ -52,6 +52,10 @@ discard block |
||
52 | 52 | return [(int) $value]; |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param integer $num |
|
57 | + * @param integer $n |
|
58 | + */ |
|
55 | 59 | private static function romanCut($num, $n) |
56 | 60 | { |
57 | 61 | return ($num - ($num % $n)) / $n; |
@@ -504,7 +508,7 @@ discard block |
||
504 | 508 | * @category Mathematical and Trigonometric Functions |
505 | 509 | * |
506 | 510 | * @param float $number The positive real number for which you want the logarithm |
507 | - * @param float $base The base of the logarithm. If base is omitted, it is assumed to be 10. |
|
511 | + * @param integer $base The base of the logarithm. If base is omitted, it is assumed to be 10. |
|
508 | 512 | * |
509 | 513 | * @return float |
510 | 514 | */ |
@@ -822,8 +826,8 @@ discard block |
||
822 | 826 | * |
823 | 827 | * Computes x raised to the power y. |
824 | 828 | * |
825 | - * @param float $x |
|
826 | - * @param float $y |
|
829 | + * @param integer $x |
|
830 | + * @param integer $y |
|
827 | 831 | * |
828 | 832 | * @return float |
829 | 833 | */ |
@@ -897,7 +901,7 @@ discard block |
||
897 | 901 | * |
898 | 902 | * @param mixed $args Data values |
899 | 903 | * |
900 | - * @return float |
|
904 | + * @return integer |
|
901 | 905 | */ |
902 | 906 | public static function QUOTIENT(...$args) |
903 | 907 | { |
@@ -1035,9 +1039,6 @@ discard block |
||
1035 | 1039 | * |
1036 | 1040 | * Returns the sum of a power series |
1037 | 1041 | * |
1038 | - * @param float $x Input value to the power series |
|
1039 | - * @param float $n Initial power to which you want to raise $x |
|
1040 | - * @param float $m Step by which to increase $n for each term in the series |
|
1041 | 1042 | * @param array of mixed Data Series |
1042 | 1043 | * |
1043 | 1044 | * @return float |
@@ -1215,7 +1216,7 @@ discard block |
||
1215 | 1216 | * @param mixed $aArgs |
1216 | 1217 | * @param mixed $sumArgs |
1217 | 1218 | * |
1218 | - * @return float |
|
1219 | + * @return integer |
|
1219 | 1220 | */ |
1220 | 1221 | public static function SUMIF($aArgs, $condition, $sumArgs = []) |
1221 | 1222 | { |
@@ -1255,9 +1256,8 @@ discard block |
||
1255 | 1256 | * @category Mathematical and Trigonometric Functions |
1256 | 1257 | * |
1257 | 1258 | * @param mixed $args Data values |
1258 | - * @param string $condition the criteria that defines which cells will be summed |
|
1259 | 1259 | * |
1260 | - * @return float |
|
1260 | + * @return integer |
|
1261 | 1261 | */ |
1262 | 1262 | public static function SUMIFS(...$args) |
1263 | 1263 | { |
@@ -1446,7 +1446,7 @@ discard block |
||
1446 | 1446 | * |
1447 | 1447 | * Truncates value to the number of fractional digits by number_digits. |
1448 | 1448 | * |
1449 | - * @param float $value |
|
1449 | + * @param integer $value |
|
1450 | 1450 | * @param int $digits |
1451 | 1451 | * |
1452 | 1452 | * @return float Truncated value |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * @param mixed $p |
134 | 134 | * @param mixed $q |
135 | 135 | * |
136 | - * @return 0 if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow |
|
136 | + * @return double if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow |
|
137 | 137 | * |
138 | 138 | * @author Jaco van Kooten |
139 | 139 | */ |
@@ -159,8 +159,8 @@ discard block |
||
159 | 159 | * @author Jaco van Kooten |
160 | 160 | * |
161 | 161 | * @param mixed $x |
162 | - * @param mixed $p |
|
163 | - * @param mixed $q |
|
162 | + * @param double $p |
|
163 | + * @param double $q |
|
164 | 164 | */ |
165 | 165 | private static function betaFraction($x, $p, $q) |
166 | 166 | { |
@@ -909,8 +909,8 @@ discard block |
||
909 | 909 | * @param float $value Value at which you want to evaluate the distribution |
910 | 910 | * @param float $alpha Parameter to the distribution |
911 | 911 | * @param float $beta Parameter to the distribution |
912 | - * @param mixed $rMin |
|
913 | - * @param mixed $rMax |
|
912 | + * @param integer $rMin |
|
913 | + * @param integer $rMax |
|
914 | 914 | * |
915 | 915 | * @return float |
916 | 916 | */ |
@@ -948,8 +948,8 @@ discard block |
||
948 | 948 | * @param float $probability Probability at which you want to evaluate the distribution |
949 | 949 | * @param float $alpha Parameter to the distribution |
950 | 950 | * @param float $beta Parameter to the distribution |
951 | - * @param float $rMin Minimum value |
|
952 | - * @param float $rMax Maximum value |
|
951 | + * @param integer $rMin Minimum value |
|
952 | + * @param integer $rMax Maximum value |
|
953 | 953 | * |
954 | 954 | * @return float |
955 | 955 | */ |
@@ -2015,7 +2015,6 @@ discard block |
||
2015 | 2015 | * @category Statistical Functions |
2016 | 2016 | * |
2017 | 2017 | * @param mixed $args Data values |
2018 | - * @param int $entry Position (ordered from the largest) in the array or range of data to return |
|
2019 | 2018 | * |
2020 | 2019 | * @return float |
2021 | 2020 | */ |
@@ -2745,7 +2744,6 @@ discard block |
||
2745 | 2744 | * @category Statistical Functions |
2746 | 2745 | * |
2747 | 2746 | * @param mixed $args Data values |
2748 | - * @param float $entry Percentile value in the range 0..1, inclusive. |
|
2749 | 2747 | * |
2750 | 2748 | * @return float |
2751 | 2749 | */ |
@@ -2796,7 +2794,7 @@ discard block |
||
2796 | 2794 | * @param number the number of significant digits for the returned percentage value |
2797 | 2795 | * @param mixed $valueSet |
2798 | 2796 | * @param mixed $value |
2799 | - * @param mixed $significance |
|
2797 | + * @param integer $significance |
|
2800 | 2798 | * |
2801 | 2799 | * @return float |
2802 | 2800 | */ |
@@ -2917,7 +2915,6 @@ discard block |
||
2917 | 2915 | * @category Statistical Functions |
2918 | 2916 | * |
2919 | 2917 | * @param mixed $args Data values |
2920 | - * @param int $entry Quartile value in the range 1..3, inclusive. |
|
2921 | 2918 | * |
2922 | 2919 | * @return float |
2923 | 2920 | */ |
@@ -2950,7 +2947,7 @@ discard block |
||
2950 | 2947 | * @param mixed Order to sort the values in the value set |
2951 | 2948 | * @param mixed $value |
2952 | 2949 | * @param mixed $valueSet |
2953 | - * @param mixed $order |
|
2950 | + * @param integer $order |
|
2954 | 2951 | * |
2955 | 2952 | * @return float |
2956 | 2953 | */ |
@@ -3092,7 +3089,6 @@ discard block |
||
3092 | 3089 | * @category Statistical Functions |
3093 | 3090 | * |
3094 | 3091 | * @param mixed $args Data values |
3095 | - * @param int $entry Position (ordered from the smallest) in the array or range of data to return |
|
3096 | 3092 | * |
3097 | 3093 | * @return float |
3098 | 3094 | */ |
@@ -3556,7 +3552,6 @@ discard block |
||
3556 | 3552 | * @category Statistical Functions |
3557 | 3553 | * |
3558 | 3554 | * @param mixed $args Data values |
3559 | - * @param float $discard Percentage to discard |
|
3560 | 3555 | * |
3561 | 3556 | * @return float |
3562 | 3557 | */ |
@@ -36,7 +36,7 @@ discard block |
||
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 |
||
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 | * |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | * |
359 | 359 | * @param cellAddress The reference from which you want to base the offset. Reference must refer to a cell or |
360 | 360 | * range of adjacent cells; otherwise, OFFSET returns the #VALUE! error value. |
361 | - * @param rows The number of rows, up or down, that you want the upper-left cell to refer to. |
|
361 | + * @param rows integer number of rows, up or down, that you want the upper-left cell to refer to. |
|
362 | 362 | * Using 5 as the rows argument specifies that the upper-left cell in the reference is |
363 | 363 | * five rows below reference. Rows can be positive (which means below the starting reference) |
364 | 364 | * or negative (which means above the starting reference). |
@@ -370,8 +370,8 @@ discard block |
||
370 | 370 | * @param height The height, in number of rows, that you want the returned reference to be. Height must be a positive number. |
371 | 371 | * @param width The width, in number of columns, that you want the returned reference to be. Width must be a positive number. |
372 | 372 | * @param null|mixed $cellAddress |
373 | - * @param mixed $rows |
|
374 | - * @param mixed $columns |
|
373 | + * @param integer $rows |
|
374 | + * @param integer $columns |
|
375 | 375 | * @param null|mixed $height |
376 | 376 | * @param null|mixed $width |
377 | 377 | * @param \PhpOffice\PhpSpreadsheet\Cell $pCell |
@@ -499,10 +499,10 @@ discard block |
||
499 | 499 | * |
500 | 500 | * @param lookup_value The value that you want to match in lookup_array |
501 | 501 | * @param lookup_array The range of cells being searched |
502 | - * @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. |
|
502 | + * @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. |
|
503 | 503 | * @param mixed $lookup_value |
504 | 504 | * @param mixed $lookup_array |
505 | - * @param mixed $match_type |
|
505 | + * @param integer $match_type |
|
506 | 506 | * |
507 | 507 | * @return int The relative position of the found item |
508 | 508 | */ |
@@ -599,8 +599,8 @@ discard block |
||
599 | 599 | * @param row_num The row in array from which to return a value. If row_num is omitted, column_num is required. |
600 | 600 | * @param column_num The column in array from which to return a value. If column_num is omitted, row_num is required. |
601 | 601 | * @param mixed $arrayValues |
602 | - * @param mixed $rowNum |
|
603 | - * @param mixed $columnNum |
|
602 | + * @param integer $rowNum |
|
603 | + * @param integer $columnNum |
|
604 | 604 | * |
605 | 605 | * @return mixed the value of a specified cell or array of cells |
606 | 606 | */ |
@@ -696,11 +696,11 @@ discard block |
||
696 | 696 | * |
697 | 697 | * @param lookup_value The value that you want to match in lookup_array |
698 | 698 | * @param lookup_array The range of cells being searched |
699 | - * @param index_number The column number in table_array from which the matching value must be returned. The first column is 1. |
|
699 | + * @param index_number integer column number in table_array from which the matching value must be returned. The first column is 1. |
|
700 | 700 | * @param not_exact_match determines if you are looking for an exact match based on lookup_value |
701 | 701 | * @param mixed $lookup_value |
702 | 702 | * @param mixed $lookup_array |
703 | - * @param mixed $index_number |
|
703 | + * @param integer $index_number |
|
704 | 704 | * @param mixed $not_exact_match |
705 | 705 | * |
706 | 706 | * @return mixed The value of the found cell |
@@ -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 = 0) |
478 | 478 | { |