@@ -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 | { |
@@ -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 | */ |
@@ -79,10 +79,10 @@ |
||
79 | 79 | /** |
80 | 80 | * Create a new DataSeriesValues object. |
81 | 81 | * |
82 | - * @param mixed $dataType |
|
82 | + * @param string $dataType |
|
83 | 83 | * @param string $dataSource |
84 | 84 | * @param null|mixed $formatCode |
85 | - * @param mixed $pointCount |
|
85 | + * @param integer $pointCount |
|
86 | 86 | * @param mixed $dataValues |
87 | 87 | * @param null|mixed $marker |
88 | 88 | */ |
@@ -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,7 +499,7 @@ discard block |
||
499 | 499 | * |
500 | 500 | * @param mixed $lookupValue The value that you want to match in lookup_array |
501 | 501 | * @param mixed $lookupArray The range of cells being searched |
502 | - * @param mixed $matchType 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 integer $matchType 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. |
|
503 | 503 | * |
504 | 504 | * @return int The relative position of the found item |
505 | 505 | */ |
@@ -613,8 +613,8 @@ discard block |
||
613 | 613 | * @param row_num The row in array from which to return a value. If row_num is omitted, column_num is required. |
614 | 614 | * @param column_num The column in array from which to return a value. If column_num is omitted, row_num is required. |
615 | 615 | * @param mixed $arrayValues |
616 | - * @param mixed $rowNum |
|
617 | - * @param mixed $columnNum |
|
616 | + * @param integer $rowNum |
|
617 | + * @param integer $columnNum |
|
618 | 618 | * |
619 | 619 | * @return mixed the value of a specified cell or array of cells |
620 | 620 | */ |
@@ -710,11 +710,11 @@ discard block |
||
710 | 710 | * |
711 | 711 | * @param lookup_value The value that you want to match in lookup_array |
712 | 712 | * @param lookup_array The range of cells being searched |
713 | - * @param index_number The column number in table_array from which the matching value must be returned. The first column is 1. |
|
713 | + * @param index_number integer column number in table_array from which the matching value must be returned. The first column is 1. |
|
714 | 714 | * @param not_exact_match determines if you are looking for an exact match based on lookup_value |
715 | 715 | * @param mixed $lookup_value |
716 | 716 | * @param mixed $lookup_array |
717 | - * @param mixed $index_number |
|
717 | + * @param integer $index_number |
|
718 | 718 | * @param mixed $not_exact_match |
719 | 719 | * |
720 | 720 | * @return mixed The value of the found cell |
@@ -158,7 +158,7 @@ |
||
158 | 158 | /** |
159 | 159 | * Get a list of all cell coordinates currently held in the collection. |
160 | 160 | * |
161 | - * @return string[] |
|
161 | + * @return integer[] |
|
162 | 162 | */ |
163 | 163 | public function getCoordinates() |
164 | 164 | { |
@@ -580,7 +580,7 @@ discard block |
||
580 | 580 | * |
581 | 581 | * @throws Exception |
582 | 582 | * |
583 | - * @return false|Chart |
|
583 | + * @return null|Chart |
|
584 | 584 | */ |
585 | 585 | public function getChartByIndex($index = null) |
586 | 586 | { |
@@ -1089,7 +1089,7 @@ discard block |
||
1089 | 1089 | * @param string $column Return the highest data row for the specified column, |
1090 | 1090 | * or the highest data row of any column if no column letter is passed |
1091 | 1091 | * |
1092 | - * @return string Highest row number that contains data |
|
1092 | + * @return integer Highest row number that contains data |
|
1093 | 1093 | */ |
1094 | 1094 | public function getHighestDataRow($column = null) |
1095 | 1095 | { |
@@ -1143,7 +1143,7 @@ discard block |
||
1143 | 1143 | * Set a cell value. |
1144 | 1144 | * |
1145 | 1145 | * @param string $pCoordinate Coordinate of the cell |
1146 | - * @param mixed $pValue Value of the cell |
|
1146 | + * @param string $pValue Value of the cell |
|
1147 | 1147 | * @param string $pDataType Explicit data type |
1148 | 1148 | * @param bool $returnCell Return the worksheet (false, default) or the cell (true) |
1149 | 1149 | * |
@@ -1227,8 +1227,8 @@ discard block |
||
1227 | 1227 | /** |
1228 | 1228 | * Get cell at a specific coordinate by using numeric cell coordinates. |
1229 | 1229 | * |
1230 | - * @param string $pColumn Numeric column coordinate of the cell |
|
1231 | - * @param string $pRow Numeric row coordinate of the cell |
|
1230 | + * @param integer $pColumn Numeric column coordinate of the cell |
|
1231 | + * @param integer $pRow Numeric row coordinate of the cell |
|
1232 | 1232 | * @param bool $createIfNotExists Flag indicating whether a new cell should be created if it doesn't |
1233 | 1233 | * already exist, or a null should be returned instead |
1234 | 1234 | * |
@@ -1336,8 +1336,8 @@ discard block |
||
1336 | 1336 | /** |
1337 | 1337 | * Cell at a specific coordinate by using numeric cell coordinates exists? |
1338 | 1338 | * |
1339 | - * @param string $pColumn Numeric column coordinate of the cell |
|
1340 | - * @param string $pRow Numeric row coordinate of the cell |
|
1339 | + * @param integer $pColumn Numeric column coordinate of the cell |
|
1340 | + * @param integer $pRow Numeric row coordinate of the cell |
|
1341 | 1341 | * |
1342 | 1342 | * @return bool |
1343 | 1343 | */ |
@@ -1350,7 +1350,7 @@ discard block |
||
1350 | 1350 | * Get row dimension at a specific row. |
1351 | 1351 | * |
1352 | 1352 | * @param int $pRow Numeric index of the row |
1353 | - * @param mixed $create |
|
1353 | + * @param boolean $create |
|
1354 | 1354 | * |
1355 | 1355 | * @return Worksheet\RowDimension |
1356 | 1356 | */ |
@@ -1376,7 +1376,7 @@ discard block |
||
1376 | 1376 | * Get column dimension at a specific column. |
1377 | 1377 | * |
1378 | 1378 | * @param string $pColumn String index of the column |
1379 | - * @param mixed $create |
|
1379 | + * @param boolean $create |
|
1380 | 1380 | * |
1381 | 1381 | * @return Worksheet\ColumnDimension |
1382 | 1382 | */ |
@@ -1922,7 +1922,7 @@ discard block |
||
1922 | 1922 | /** |
1923 | 1923 | * Set AutoFilter. |
1924 | 1924 | * |
1925 | - * @param Worksheet\AutoFilter|string $pValue |
|
1925 | + * @param string $pValue |
|
1926 | 1926 | * A simple string containing a Cell range like 'A1:E10' is permitted for backward compatibility |
1927 | 1927 | * |
1928 | 1928 | * @throws Exception |
@@ -2988,7 +2988,7 @@ discard block |
||
2988 | 2988 | * |
2989 | 2989 | * @throws Exception |
2990 | 2990 | * |
2991 | - * @return objWorksheet |
|
2991 | + * @return Worksheet |
|
2992 | 2992 | */ |
2993 | 2993 | public function setCodeName($pValue = null) |
2994 | 2994 | { |