@@ -220,7 +220,7 @@ |
||
220 | 220 | /** |
221 | 221 | * Solve A*X = B |
222 | 222 | * |
223 | - * @param $B A Matrix with as many rows as A and any number of columns. |
|
223 | + * @param Matrix $B A Matrix with as many rows as A and any number of columns. |
|
224 | 224 | * @return X so that L*U*X = B(piv,:) |
225 | 225 | * @\PhpSpreadsheet\Calculation\Exception IllegalArgumentException Matrix row dimensions must agree. |
226 | 226 | * @\PhpSpreadsheet\Calculation\Exception RuntimeException Matrix is singular. |
@@ -146,11 +146,6 @@ discard block |
||
146 | 146 | * getMatrix |
147 | 147 | * |
148 | 148 | * Get a submatrix |
149 | - * @param int $i0 Initial row index |
|
150 | - * @param int $iF Final row index |
|
151 | - * @param int $j0 Initial column index |
|
152 | - * @param int $jF Final column index |
|
153 | - * @return Matrix Submatrix |
|
154 | 149 | */ |
155 | 150 | public function getMatrix() |
156 | 151 | { |
@@ -354,7 +349,7 @@ discard block |
||
354 | 349 | * Generate a diagonal matrix |
355 | 350 | * @param int $m Row dimension |
356 | 351 | * @param int $n Column dimension |
357 | - * @param mixed $c Diagonal value |
|
352 | + * @param integer $c Diagonal value |
|
358 | 353 | * @return Matrix Diagonal matrix |
359 | 354 | */ |
360 | 355 | public function diagonal($m = null, $n = null, $c = 1) |
@@ -431,7 +426,7 @@ discard block |
||
431 | 426 | * trace |
432 | 427 | * |
433 | 428 | * Sum of diagonal elements |
434 | - * @return float Sum of diagonal elements |
|
429 | + * @return integer Sum of diagonal elements |
|
435 | 430 | */ |
436 | 431 | public function trace() |
437 | 432 | { |
@@ -458,8 +453,6 @@ discard block |
||
458 | 453 | * plus |
459 | 454 | * |
460 | 455 | * A + B |
461 | - * @param mixed $B Matrix/Array |
|
462 | - * @return Matrix Sum |
|
463 | 456 | */ |
464 | 457 | public function plus() |
465 | 458 | { |
@@ -499,8 +492,6 @@ discard block |
||
499 | 492 | * plusEquals |
500 | 493 | * |
501 | 494 | * A = A + B |
502 | - * @param mixed $B Matrix/Array |
|
503 | - * @return Matrix Sum |
|
504 | 495 | */ |
505 | 496 | public function plusEquals() |
506 | 497 | { |
@@ -554,8 +545,6 @@ discard block |
||
554 | 545 | * minus |
555 | 546 | * |
556 | 547 | * A - B |
557 | - * @param mixed $B Matrix/Array |
|
558 | - * @return Matrix Sum |
|
559 | 548 | */ |
560 | 549 | public function minus() |
561 | 550 | { |
@@ -595,8 +584,6 @@ discard block |
||
595 | 584 | * minusEquals |
596 | 585 | * |
597 | 586 | * A = A - B |
598 | - * @param mixed $B Matrix/Array |
|
599 | - * @return Matrix Sum |
|
600 | 587 | */ |
601 | 588 | public function minusEquals() |
602 | 589 | { |
@@ -651,8 +638,6 @@ discard block |
||
651 | 638 | * |
652 | 639 | * Element-by-element multiplication |
653 | 640 | * Cij = Aij * Bij |
654 | - * @param mixed $B Matrix/Array |
|
655 | - * @return Matrix Matrix Cij |
|
656 | 641 | */ |
657 | 642 | public function arrayTimes() |
658 | 643 | { |
@@ -693,8 +678,6 @@ discard block |
||
693 | 678 | * |
694 | 679 | * Element-by-element multiplication |
695 | 680 | * Aij = Aij * Bij |
696 | - * @param mixed $B Matrix/Array |
|
697 | - * @return Matrix Matrix Aij |
|
698 | 681 | */ |
699 | 682 | public function arrayTimesEquals() |
700 | 683 | { |
@@ -749,8 +732,6 @@ discard block |
||
749 | 732 | * |
750 | 733 | * Element-by-element right division |
751 | 734 | * A / B |
752 | - * @param Matrix $B Matrix B |
|
753 | - * @return Matrix Division result |
|
754 | 735 | */ |
755 | 736 | public function arrayRightDivide() |
756 | 737 | { |
@@ -810,8 +791,6 @@ discard block |
||
810 | 791 | * |
811 | 792 | * Element-by-element right division |
812 | 793 | * Aij = Aij / Bij |
813 | - * @param mixed $B Matrix/Array |
|
814 | - * @return Matrix Matrix Aij |
|
815 | 794 | */ |
816 | 795 | public function arrayRightDivideEquals() |
817 | 796 | { |
@@ -852,8 +831,6 @@ discard block |
||
852 | 831 | * |
853 | 832 | * Element-by-element Left division |
854 | 833 | * A / B |
855 | - * @param Matrix $B Matrix B |
|
856 | - * @return Matrix Division result |
|
857 | 834 | */ |
858 | 835 | public function arrayLeftDivide() |
859 | 836 | { |
@@ -894,8 +871,6 @@ discard block |
||
894 | 871 | * |
895 | 872 | * Element-by-element Left division |
896 | 873 | * Aij = Aij / Bij |
897 | - * @param mixed $B Matrix/Array |
|
898 | - * @return Matrix Matrix Aij |
|
899 | 874 | */ |
900 | 875 | public function arrayLeftDivideEquals() |
901 | 876 | { |
@@ -935,8 +910,6 @@ discard block |
||
935 | 910 | * times |
936 | 911 | * |
937 | 912 | * Matrix multiplication |
938 | - * @param mixed $n Matrix/Array/Scalar |
|
939 | - * @return Matrix Product |
|
940 | 913 | */ |
941 | 914 | public function times() |
942 | 915 | { |
@@ -1036,8 +1009,6 @@ discard block |
||
1036 | 1009 | * power |
1037 | 1010 | * |
1038 | 1011 | * A = A ^ B |
1039 | - * @param mixed $B Matrix/Array |
|
1040 | - * @return Matrix Sum |
|
1041 | 1012 | */ |
1042 | 1013 | public function power() |
1043 | 1014 | { |
@@ -1091,8 +1062,6 @@ discard block |
||
1091 | 1062 | * concat |
1092 | 1063 | * |
1093 | 1064 | * A = A & B |
1094 | - * @param mixed $B Matrix/Array |
|
1095 | - * @return Matrix Sum |
|
1096 | 1065 | */ |
1097 | 1066 | public function concat() |
1098 | 1067 | { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * If a resource pointer to a stream created by fopen() is passed |
56 | 56 | * it will be used, but you have to close such stream by yourself. |
57 | 57 | * |
58 | - * @param string|resource $filename The name of the file or stream where to save the OLE container. |
|
58 | + * @param string|null $filename The name of the file or stream where to save the OLE container. |
|
59 | 59 | * @throws \PhpSpreadsheet\Writer\Exception |
60 | 60 | * @return bool true on success |
61 | 61 | */ |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * Calculate some numbers |
118 | 118 | * |
119 | 119 | * @param array $raList Reference to an array of PPS's |
120 | - * @return float[] The array of numbers |
|
120 | + * @return double[] The array of numbers |
|
121 | 121 | */ |
122 | 122 | public function _calcSize(&$raList) |
123 | 123 | { |
@@ -2215,6 +2215,10 @@ discard block |
||
2215 | 2215 | // Description : |
2216 | 2216 | // Parameters : |
2217 | 2217 | // -------------------------------------------------------------------------------- |
2218 | + |
|
2219 | + /** |
|
2220 | + * @param string $p_mode |
|
2221 | + */ |
|
2218 | 2222 | public function privOpenFd($p_mode) |
2219 | 2223 | { |
2220 | 2224 | $v_result = 1; |
@@ -3815,6 +3819,10 @@ discard block |
||
3815 | 3819 | // Parameters : |
3816 | 3820 | // Return Values : |
3817 | 3821 | // -------------------------------------------------------------------------------- |
3822 | + |
|
3823 | + /** |
|
3824 | + * @param string $p_string |
|
3825 | + */ |
|
3818 | 3826 | public function privExtractFileAsString(&$p_entry, &$p_string, &$p_options) |
3819 | 3827 | { |
3820 | 3828 | $v_result = 1; |
@@ -316,6 +316,10 @@ |
||
316 | 316 | return $this->yBestFitValues; |
317 | 317 | } |
318 | 318 | |
319 | + /** |
|
320 | + * @param double $sumY2 |
|
321 | + * @param boolean $const |
|
322 | + */ |
|
319 | 323 | protected function calculateGoodnessOfFit($sumX, $sumY, $sumX2, $sumY2, $sumXY, $meanX, $meanY, $const) |
320 | 324 | { |
321 | 325 | $SSres = $SScov = $SScor = $SStot = $SSsex = 0.0; |
@@ -98,7 +98,7 @@ |
||
98 | 98 | * Find if given fileName exist in archive (Emulate ZipArchive locateName()) |
99 | 99 | * |
100 | 100 | * @param string $fileName Filename for the file in zip archive |
101 | - * @return bool |
|
101 | + * @return integer |
|
102 | 102 | */ |
103 | 103 | public function locateName($fileName) |
104 | 104 | { |
@@ -166,7 +166,7 @@ |
||
166 | 166 | * |
167 | 167 | * @param int $offset byte offset |
168 | 168 | * @param int $whence SEEK_SET, SEEK_CUR or SEEK_END |
169 | - * @return bool |
|
169 | + * @return boolean|null |
|
170 | 170 | */ |
171 | 171 | public function stream_seek($offset, $whence) // @codingStandardsIgnoreLine |
172 | 172 | { |
@@ -147,7 +147,7 @@ |
||
147 | 147 | /** |
148 | 148 | * Get parent. Only used for style supervisor |
149 | 149 | * |
150 | - * @return Spreadsheet |
|
150 | + * @return Style |
|
151 | 151 | */ |
152 | 152 | public function getParent() |
153 | 153 | { |
@@ -584,7 +584,7 @@ discard block |
||
584 | 584 | * |
585 | 585 | * @param string $index Chart index position |
586 | 586 | * @throws Exception |
587 | - * @return false|Chart |
|
587 | + * @return null|Chart |
|
588 | 588 | */ |
589 | 589 | public function getChartByIndex($index = null) |
590 | 590 | { |
@@ -1085,7 +1085,7 @@ discard block |
||
1085 | 1085 | * Set a cell value |
1086 | 1086 | * |
1087 | 1087 | * @param string $pCoordinate Coordinate of the cell |
1088 | - * @param mixed $pValue Value of the cell |
|
1088 | + * @param integer $pValue Value of the cell |
|
1089 | 1089 | * @param bool $returnCell Return the worksheet (false, default) or the cell (true) |
1090 | 1090 | * @return Worksheet|Cell Depending on the last parameter being specified |
1091 | 1091 | */ |
@@ -1196,8 +1196,8 @@ discard block |
||
1196 | 1196 | /** |
1197 | 1197 | * Get cell at a specific coordinate by using numeric cell coordinates |
1198 | 1198 | * |
1199 | - * @param string $pColumn Numeric column coordinate of the cell |
|
1200 | - * @param string $pRow Numeric row coordinate of the cell |
|
1199 | + * @param integer $pColumn Numeric column coordinate of the cell |
|
1200 | + * @param integer $pRow Numeric row coordinate of the cell |
|
1201 | 1201 | * @param bool $createIfNotExists Flag indicating whether a new cell should be created if it doesn't |
1202 | 1202 | * already exist, or a null should be returned instead |
1203 | 1203 | * @return null|Cell Cell that was found/created or null |
@@ -1305,8 +1305,8 @@ discard block |
||
1305 | 1305 | /** |
1306 | 1306 | * Cell at a specific coordinate by using numeric cell coordinates exists? |
1307 | 1307 | * |
1308 | - * @param string $pColumn Numeric column coordinate of the cell |
|
1309 | - * @param string $pRow Numeric row coordinate of the cell |
|
1308 | + * @param integer $pColumn Numeric column coordinate of the cell |
|
1309 | + * @param integer $pRow Numeric row coordinate of the cell |
|
1310 | 1310 | * @return bool |
1311 | 1311 | */ |
1312 | 1312 | public function cellExistsByColumnAndRow($pColumn = 0, $pRow = 1) |
@@ -1923,7 +1923,7 @@ discard block |
||
1923 | 1923 | /** |
1924 | 1924 | * Set AutoFilter |
1925 | 1925 | * |
1926 | - * @param Worksheet\AutoFilter|string $pValue |
|
1926 | + * @param string $pValue |
|
1927 | 1927 | * A simple string containing a Cell range like 'A1:E10' is permitted for backward compatibility |
1928 | 1928 | * @throws Exception |
1929 | 1929 | * @return Worksheet |
@@ -2954,7 +2954,7 @@ discard block |
||
2954 | 2954 | * |
2955 | 2955 | * @param null|string Same rule as Title minus space not allowed (but, like Excel, change silently space to underscore) |
2956 | 2956 | * @throws Exception |
2957 | - * @return objWorksheet |
|
2957 | + * @return Worksheet |
|
2958 | 2958 | */ |
2959 | 2959 | public function setCodeName($pValue = null) |
2960 | 2960 | { |