@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | /** |
165 | 165 | * Convert a MS serialized datetime value from Excel to a PHP Date/Time object |
166 | 166 | * |
167 | - * @param int|float $excelTimestamp MS Excel serialized date/time value |
|
167 | + * @param integer $excelTimestamp MS Excel serialized date/time value |
|
168 | 168 | * @param \DateTimeZone|string|null $timeZone The timezone to assume for the Excel timestamp, |
169 | 169 | * if you don't want to treat it as a UTC value |
170 | 170 | * Use the default (UST) unless you absolutely need a conversion |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | /** |
204 | 204 | * Convert a MS serialized datetime value from Excel to a unix timestamp |
205 | 205 | * |
206 | - * @param int|float $excelTimestamp MS Excel serialized date/time value |
|
206 | + * @param integer $excelTimestamp MS Excel serialized date/time value |
|
207 | 207 | * @param \DateTimeZone|string|null $timeZone The timezone to assume for the Excel timestamp, |
208 | 208 | * if you don't want to treat it as a UTC value |
209 | 209 | * Use the default (UST) unless you absolutely need a conversion |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | /** |
220 | 220 | * Convert a date from PHP to an MS Excel serialized date/time value |
221 | 221 | * |
222 | - * @param mixed $dateValue Unix Timestamp or PHP DateTime object or a string |
|
222 | + * @param integer $dateValue Unix Timestamp or PHP DateTime object or a string |
|
223 | 223 | * @return float|bool Excel date/time value |
224 | 224 | * or boolean FALSE on failure |
225 | 225 | */ |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | /** |
258 | 258 | * Convert a Unix timestamp to an MS Excel serialized date/time value |
259 | 259 | * |
260 | - * @param \DateTimeInterface $dateValue Unix Timestamp |
|
260 | + * @param integer $dateValue Unix Timestamp |
|
261 | 261 | * @return float MS Excel serialized date/time value |
262 | 262 | */ |
263 | 263 | public static function timestampToExcel($dateValue = 0) |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | * @param int $hours |
279 | 279 | * @param int $minutes |
280 | 280 | * @param int $seconds |
281 | - * @return int Excel date/time value |
|
281 | + * @return double Excel date/time value |
|
282 | 282 | */ |
283 | 283 | public static function formattedPHPToExcel($year, $month, $day, $hours = 0, $minutes = 0, $seconds = 0) |
284 | 284 | { |
@@ -165,6 +165,9 @@ discard block |
||
165 | 165 | return $worksheetInfo; |
166 | 166 | } |
167 | 167 | |
168 | + /** |
|
169 | + * @param string $filename |
|
170 | + */ |
|
168 | 171 | private function gzfileGetContents($filename) |
169 | 172 | { |
170 | 173 | $file = @gzopen($filename, 'rb'); |
@@ -201,7 +204,7 @@ discard block |
||
201 | 204 | * @param string $pFilename |
202 | 205 | * @param Spreadsheet $spreadsheet |
203 | 206 | * @throws Exception |
204 | - * @return PhpSpreadsheet |
|
207 | + * @return Spreadsheet |
|
205 | 208 | */ |
206 | 209 | public function loadIntoExisting($pFilename, Spreadsheet $spreadsheet) |
207 | 210 | { |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | /** |
135 | 135 | * Create a new Spreadsheet_Writer_HTML |
136 | 136 | * |
137 | - * @param Spreadsheet $spreadsheet |
|
137 | + * @param \PhpSpreadsheet\Spreadsheet $spreadsheet |
|
138 | 138 | */ |
139 | 139 | public function __construct(Spreadsheet $spreadsheet) |
140 | 140 | { |
@@ -1420,7 +1420,7 @@ discard block |
||
1420 | 1420 | * Set images root |
1421 | 1421 | * |
1422 | 1422 | * @param string $pValue |
1423 | - * @return Spreadsheet_Writer_HTML |
|
1423 | + * @return HTML |
|
1424 | 1424 | */ |
1425 | 1425 | public function setImagesRoot($pValue = '.') |
1426 | 1426 | { |
@@ -1442,8 +1442,8 @@ discard block |
||
1442 | 1442 | /** |
1443 | 1443 | * Set embed images |
1444 | 1444 | * |
1445 | - * @param bool $pValue |
|
1446 | - * @return Spreadsheet_Writer_HTML |
|
1445 | + * @param string|boolean $pValue |
|
1446 | + * @return HTML |
|
1447 | 1447 | */ |
1448 | 1448 | public function setEmbedImages($pValue = '.') |
1449 | 1449 | { |
@@ -1466,7 +1466,7 @@ discard block |
||
1466 | 1466 | * Set use inline CSS? |
1467 | 1467 | * |
1468 | 1468 | * @param bool $pValue |
1469 | - * @return Spreadsheet_Writer_HTML |
|
1469 | + * @return HTML |
|
1470 | 1470 | */ |
1471 | 1471 | public function setUseInlineCss($pValue = false) |
1472 | 1472 | { |