@@ -30,7 +30,7 @@ |
||
30 | 30 | * Convert pixels to EMU |
31 | 31 | * |
32 | 32 | * @param int $pValue Value in pixels |
33 | - * @return int Value in EMU |
|
33 | + * @return double Value in EMU |
|
34 | 34 | */ |
35 | 35 | public static function pixelsToEMU($pValue = 0) |
36 | 36 | { |
@@ -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 | { |
@@ -70,7 +70,7 @@ |
||
70 | 70 | /** |
71 | 71 | * Read the file |
72 | 72 | * |
73 | - * @param $sFileName string Filename |
|
73 | + * @param string $sFileName string Filename |
|
74 | 74 | * @throws \PhpSpreadsheet\Reader\Exception |
75 | 75 | */ |
76 | 76 | public function read($sFileName) |
@@ -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 | { |