@@ -1367,6 +1367,10 @@ discard block |
||
1367 | 1367 | // 1 on success. |
1368 | 1368 | // 0 on failure. |
1369 | 1369 | // -------------------------------------------------------------------------------- |
1370 | + |
|
1371 | + /** |
|
1372 | + * @param integer $p_size |
|
1373 | + */ |
|
1370 | 1374 | public function privParseOptions(&$p_options_list, $p_size, &$v_result_list, $v_requested_options = false) |
1371 | 1375 | { |
1372 | 1376 | $v_result = 1; |
@@ -2218,6 +2222,10 @@ discard block |
||
2218 | 2222 | // Description : |
2219 | 2223 | // Parameters : |
2220 | 2224 | // -------------------------------------------------------------------------------- |
2225 | + |
|
2226 | + /** |
|
2227 | + * @param string $p_mode |
|
2228 | + */ |
|
2221 | 2229 | public function privOpenFd($p_mode) |
2222 | 2230 | { |
2223 | 2231 | $v_result = 1; |
@@ -3831,6 +3839,10 @@ discard block |
||
3831 | 3839 | // Parameters : |
3832 | 3840 | // Return Values : |
3833 | 3841 | // -------------------------------------------------------------------------------- |
3842 | + |
|
3843 | + /** |
|
3844 | + * @param string $p_string |
|
3845 | + */ |
|
3834 | 3846 | public function privExtractFileAsString(&$p_entry, &$p_string, &$p_options) |
3835 | 3847 | { |
3836 | 3848 | $v_result = 1; |
@@ -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 | { |
@@ -574,7 +574,7 @@ discard block |
||
574 | 574 | * |
575 | 575 | * @param string $string a string for conversion to its ptg value |
576 | 576 | * |
577 | - * @return mixed the converted token on success |
|
577 | + * @return string the converted token on success |
|
578 | 578 | */ |
579 | 579 | private function convertString($string) |
580 | 580 | { |
@@ -652,7 +652,7 @@ discard block |
||
652 | 652 | * |
653 | 653 | * @param string $token an Excel range in the Sheet1!A1:A2 format |
654 | 654 | * |
655 | - * @return mixed the packed ptgArea3d token on success |
|
655 | + * @return string the packed ptgArea3d token on success |
|
656 | 656 | */ |
657 | 657 | private function convertRange3d($token) |
658 | 658 | { |
@@ -704,7 +704,7 @@ discard block |
||
704 | 704 | * |
705 | 705 | * @param string $cell An Excel cell reference |
706 | 706 | * |
707 | - * @return mixed the packed ptgRef3d token on success |
|
707 | + * @return string the packed ptgRef3d token on success |
|
708 | 708 | */ |
709 | 709 | private function convertRef3d($cell) |
710 | 710 | { |
@@ -803,7 +803,7 @@ discard block |
||
803 | 803 | * |
804 | 804 | * @param string $ext_ref The name of the external reference |
805 | 805 | * |
806 | - * @return mixed The reference index in packed() format on success |
|
806 | + * @return string The reference index in packed() format on success |
|
807 | 807 | */ |
808 | 808 | private function getRefIndex($ext_ref) |
809 | 809 | { |
@@ -894,7 +894,7 @@ discard block |
||
894 | 894 | * |
895 | 895 | * @param string $cell The Excel cell reference to be packed |
896 | 896 | * |
897 | - * @return array Array containing the row and column in packed() format |
|
897 | + * @return string[] Array containing the row and column in packed() format |
|
898 | 898 | */ |
899 | 899 | private function cellToPackedRowcol($cell) |
900 | 900 | { |
@@ -923,7 +923,7 @@ discard block |
||
923 | 923 | * |
924 | 924 | * @param string $range The Excel range to be packed |
925 | 925 | * |
926 | - * @return array Array containing (row1,col1,row2,col2) in packed() format |
|
926 | + * @return string[] Array containing (row1,col1,row2,col2) in packed() format |
|
927 | 927 | */ |
928 | 928 | private function rangeToPackedRange($range) |
929 | 929 | { |
@@ -1039,7 +1039,7 @@ discard block |
||
1039 | 1039 | /** |
1040 | 1040 | * Checks if it's a valid token. |
1041 | 1041 | * |
1042 | - * @param mixed $token the token to check |
|
1042 | + * @param string $token the token to check |
|
1043 | 1043 | * |
1044 | 1044 | * @return mixed The checked token or false on failure |
1045 | 1045 | */ |
@@ -1125,7 +1125,7 @@ discard block |
||
1125 | 1125 | * @param string $formula the formula to parse, without the initial equal |
1126 | 1126 | * sign (=) |
1127 | 1127 | * |
1128 | - * @return mixed true on success |
|
1128 | + * @return boolean true on success |
|
1129 | 1129 | */ |
1130 | 1130 | public function parse($formula) |
1131 | 1131 | { |
@@ -410,8 +410,8 @@ discard block |
||
410 | 410 | * @param string $id1 |
411 | 411 | * @param string $id2 |
412 | 412 | * @param bool $isMultiLevelSeries |
413 | - * @param mixed $xAxis |
|
414 | - * @param mixed $yAxis |
|
413 | + * @param null|Axis $xAxis |
|
414 | + * @param null|Axis $yAxis |
|
415 | 415 | * |
416 | 416 | * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception |
417 | 417 | */ |
@@ -533,10 +533,10 @@ discard block |
||
533 | 533 | * @param string $id1 |
534 | 534 | * @param string $id2 |
535 | 535 | * @param bool $isMultiLevelSeries |
536 | - * @param mixed $xAxis |
|
537 | - * @param mixed $yAxis |
|
538 | - * @param mixed $majorGridlines |
|
539 | - * @param mixed $minorGridlines |
|
536 | + * @param null|Axis $xAxis |
|
537 | + * @param null|Axis $yAxis |
|
538 | + * @param null|GridLines $majorGridlines |
|
539 | + * @param null|GridLines $minorGridlines |
|
540 | 540 | * |
541 | 541 | * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception |
542 | 542 | */ |
@@ -294,6 +294,11 @@ discard block |
||
294 | 294 | return isset($c->v) ? (string) $c->v : null; |
295 | 295 | } |
296 | 296 | |
297 | + /** |
|
298 | + * @param string $r |
|
299 | + * @param string $cellDataType |
|
300 | + * @param string $castBaseType |
|
301 | + */ |
|
297 | 302 | private function castToFormula($c, $r, &$cellDataType, &$value, &$calculatedValue, &$sharedFormulas, $castBaseType) |
298 | 303 | { |
299 | 304 | $cellDataType = 'f'; |
@@ -2159,6 +2164,9 @@ discard block |
||
2159 | 2164 | return preg_replace('~[^/]+/\.\./~', '', dirname($base) . "/$add"); |
2160 | 2165 | } |
2161 | 2166 | |
2167 | + /** |
|
2168 | + * @param string $style |
|
2169 | + */ |
|
2162 | 2170 | private static function toCSSArray($style) |
2163 | 2171 | { |
2164 | 2172 | $style = str_replace(["\r", "\n"], '', $style); |
@@ -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 = null, $xmlData = null) |
224 | 224 | { |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | * |
235 | 235 | * return string|null|array |
236 | 236 | * |
237 | - * @param mixed $what |
|
237 | + * @param string $what |
|
238 | 238 | * |
239 | 239 | * @return string |
240 | 240 | */ |
@@ -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 | { |
@@ -168,16 +168,25 @@ discard block |
||
168 | 168 | return fread($this->fileHandle, $blockSize); |
169 | 169 | } |
170 | 170 | |
171 | + /** |
|
172 | + * @param string $data |
|
173 | + */ |
|
171 | 174 | private static function startsWithTag($data) |
172 | 175 | { |
173 | 176 | return '<' === substr(trim($data), 0, 1); |
174 | 177 | } |
175 | 178 | |
179 | + /** |
|
180 | + * @param string $data |
|
181 | + */ |
|
176 | 182 | private static function endsWithTag($data) |
177 | 183 | { |
178 | 184 | return '>' === substr(trim($data), -1, 1); |
179 | 185 | } |
180 | 186 | |
187 | + /** |
|
188 | + * @param string $data |
|
189 | + */ |
|
181 | 190 | private static function containsTags($data) |
182 | 191 | { |
183 | 192 | return strlen($data) !== strlen(strip_tags($data)); |
@@ -249,6 +258,10 @@ discard block |
||
249 | 258 | return array_pop($this->nestedColumn); |
250 | 259 | } |
251 | 260 | |
261 | + /** |
|
262 | + * @param \PhpOffice\PhpSpreadsheet\Worksheet $sheet |
|
263 | + * @param integer $row |
|
264 | + */ |
|
252 | 265 | protected function flushCell($sheet, $column, $row, &$cellContent) |
253 | 266 | { |
254 | 267 | if (is_string($cellContent)) { |
@@ -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 | { |
@@ -231,6 +231,9 @@ discard block |
||
231 | 231 | return $this->loadIntoExisting($pFilename, $objPHPExcel); |
232 | 232 | } |
233 | 233 | |
234 | + /** |
|
235 | + * @param string $styleAttributeValue |
|
236 | + */ |
|
234 | 237 | protected static function identifyFixedStyleValue($styleList, &$styleAttributeValue) |
235 | 238 | { |
236 | 239 | $styleAttributeValue = strtolower($styleAttributeValue); |
@@ -786,6 +789,9 @@ discard block |
||
786 | 789 | } |
787 | 790 | |
788 | 791 | |
792 | + /** |
|
793 | + * @param string $charset |
|
794 | + */ |
|
789 | 795 | protected static function convertStringEncoding($string, $charset) |
790 | 796 | { |
791 | 797 | if ($charset != 'UTF-8') { |
@@ -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 | * |