@@ -230,6 +230,9 @@ discard block |
||
230 | 230 | return $this->loadIntoExisting($pFilename, $spreadsheet); |
231 | 231 | } |
232 | 232 | |
233 | + /** |
|
234 | + * @param string $styleAttributeValue |
|
235 | + */ |
|
233 | 236 | protected static function identifyFixedStyleValue($styleList, &$styleAttributeValue) |
234 | 237 | { |
235 | 238 | $styleAttributeValue = strtolower($styleAttributeValue); |
@@ -761,6 +764,9 @@ discard block |
||
761 | 764 | return $spreadsheet; |
762 | 765 | } |
763 | 766 | |
767 | + /** |
|
768 | + * @param string $charset |
|
769 | + */ |
|
764 | 770 | protected static function convertStringEncoding($string, $charset) |
765 | 771 | { |
766 | 772 | if ($charset != 'UTF-8') { |
@@ -69,7 +69,7 @@ |
||
69 | 69 | /** |
70 | 70 | * Read the file. |
71 | 71 | * |
72 | - * @param $pFilename string Filename |
|
72 | + * @param string $pFilename string Filename |
|
73 | 73 | * |
74 | 74 | * @throws \PhpOffice\PhpSpreadsheet\Reader\Exception |
75 | 75 | */ |
@@ -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 | { |
@@ -232,7 +232,7 @@ |
||
232 | 232 | /** |
233 | 233 | * Set Rotation. |
234 | 234 | * |
235 | - * @param float $pValue |
|
235 | + * @param integer $pValue |
|
236 | 236 | * |
237 | 237 | * @return Fill |
238 | 238 | */ |
@@ -272,7 +272,7 @@ |
||
272 | 272 | /** |
273 | 273 | * Set Size. |
274 | 274 | * |
275 | - * @param float $pValue |
|
275 | + * @param integer $pValue |
|
276 | 276 | * |
277 | 277 | * @return Font |
278 | 278 | */ |
@@ -100,7 +100,7 @@ |
||
100 | 100 | /** |
101 | 101 | * Set Width. |
102 | 102 | * |
103 | - * @param float $pValue |
|
103 | + * @param integer $pValue |
|
104 | 104 | * |
105 | 105 | * @return ColumnDimension |
106 | 106 | */ |
@@ -100,7 +100,7 @@ |
||
100 | 100 | /** |
101 | 101 | * Set Row Height. |
102 | 102 | * |
103 | - * @param float $pValue |
|
103 | + * @param integer $pValue |
|
104 | 104 | * |
105 | 105 | * @return RowDimension |
106 | 106 | */ |
@@ -1165,7 +1165,7 @@ |
||
1165 | 1165 | * @param \PhpOffice\PhpSpreadsheet\Worksheet $pSheet \PhpOffice\PhpSpreadsheet\Worksheet |
1166 | 1166 | * @param array $pValues Array containing cells in a row |
1167 | 1167 | * @param int $pRow Row number (0-based) |
1168 | - * @param mixed $cellType |
|
1168 | + * @param string $cellType |
|
1169 | 1169 | * |
1170 | 1170 | * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception |
1171 | 1171 | * |
@@ -505,7 +505,7 @@ discard block |
||
505 | 505 | * |
506 | 506 | * @param mixed $token the token to convert |
507 | 507 | * |
508 | - * @return mixed the converted token on success |
|
508 | + * @return string the converted token on success |
|
509 | 509 | */ |
510 | 510 | private function convert($token) |
511 | 511 | { |
@@ -576,7 +576,7 @@ discard block |
||
576 | 576 | * |
577 | 577 | * @param string $string a string for conversion to its ptg value |
578 | 578 | * |
579 | - * @return mixed the converted token on success |
|
579 | + * @return string the converted token on success |
|
580 | 580 | */ |
581 | 581 | private function convertString($string) |
582 | 582 | { |
@@ -654,7 +654,7 @@ discard block |
||
654 | 654 | * |
655 | 655 | * @param string $token an Excel range in the Sheet1!A1:A2 format |
656 | 656 | * |
657 | - * @return mixed the packed ptgArea3d token on success |
|
657 | + * @return string the packed ptgArea3d token on success |
|
658 | 658 | */ |
659 | 659 | private function convertRange3d($token) |
660 | 660 | { |
@@ -706,7 +706,7 @@ discard block |
||
706 | 706 | * |
707 | 707 | * @param string $cell An Excel cell reference |
708 | 708 | * |
709 | - * @return mixed the packed ptgRef3d token on success |
|
709 | + * @return string the packed ptgRef3d token on success |
|
710 | 710 | */ |
711 | 711 | private function convertRef3d($cell) |
712 | 712 | { |
@@ -805,7 +805,7 @@ discard block |
||
805 | 805 | * |
806 | 806 | * @param string $ext_ref The name of the external reference |
807 | 807 | * |
808 | - * @return mixed The reference index in packed() format on success |
|
808 | + * @return string The reference index in packed() format on success |
|
809 | 809 | */ |
810 | 810 | private function getRefIndex($ext_ref) |
811 | 811 | { |
@@ -896,7 +896,7 @@ discard block |
||
896 | 896 | * |
897 | 897 | * @param string $cell The Excel cell reference to be packed |
898 | 898 | * |
899 | - * @return array Array containing the row and column in packed() format |
|
899 | + * @return string[] Array containing the row and column in packed() format |
|
900 | 900 | */ |
901 | 901 | private function cellToPackedRowcol($cell) |
902 | 902 | { |
@@ -925,7 +925,7 @@ discard block |
||
925 | 925 | * |
926 | 926 | * @param string $range The Excel range to be packed |
927 | 927 | * |
928 | - * @return array Array containing (row1,col1,row2,col2) in packed() format |
|
928 | + * @return string[] Array containing (row1,col1,row2,col2) in packed() format |
|
929 | 929 | */ |
930 | 930 | private function rangeToPackedRange($range) |
931 | 931 | { |
@@ -1041,7 +1041,7 @@ discard block |
||
1041 | 1041 | /** |
1042 | 1042 | * Checks if it's a valid token. |
1043 | 1043 | * |
1044 | - * @param mixed $token the token to check |
|
1044 | + * @param string $token the token to check |
|
1045 | 1045 | * |
1046 | 1046 | * @return mixed The checked token or false on failure |
1047 | 1047 | */ |
@@ -1127,7 +1127,7 @@ discard block |
||
1127 | 1127 | * @param string $formula the formula to parse, without the initial equal |
1128 | 1128 | * sign (=) |
1129 | 1129 | * |
1130 | - * @return mixed true on success |
|
1130 | + * @return boolean true on success |
|
1131 | 1131 | */ |
1132 | 1132 | public function parse($formula) |
1133 | 1133 | { |