@@ -356,12 +356,8 @@ protected function killLineBreaks($html)
356
356
357
357
/**
358
358
* Remove multiple white space, keeps line breaks.
359
- *
360
- * @param string $html
361
- *
362
- * @return string
363
359
*/
364
- protected function killWhiteSpace ($ html )
360
+ protected function killWhiteSpace (string $ html ): string
365
361
{
366
362
$ temp = explode ($ this ->newline , $ html );
367
363
for ($ i = 0 ; $ i < \count ($ temp ); ++$ i ) {
@@ -379,34 +375,24 @@ protected function killWhiteSpace($html)
379
375
380
376
/**
381
377
* Remove white space at the end of lines, keeps other white space and line breaks.
382
- *
383
- * @param string $html
384
- *
385
- * @return string
386
378
*/
387
- protected function rTrimLines (&$ html )
379
+ protected function rTrimLines (string &$ html ): void
388
380
{
389
381
$ html = preg_replace ('/\s+$/m ' , '' , $ html );
390
382
}
391
383
392
384
/**
393
385
* Convert newlines according to the current OS.
394
- *
395
- * @param string $html
396
- *
397
- * @return string
398
386
*/
399
- protected function convNlOs (&$ html )
387
+ protected function convNlOs (string &$ html ): void
400
388
{
401
389
$ html = preg_replace ("( \r\n| \r) " , $ this ->newline , $ html );
402
390
}
403
391
404
392
/**
405
393
* Remove empty lines.
406
- *
407
- * @param string $html
408
394
*/
409
- protected function removeEmptyLines (&$ html ): void
395
+ protected function removeEmptyLines (string &$ html ): void
410
396
{
411
397
$ temp = explode ($ this ->newline , $ html );
412
398
$ result = [];
@@ -422,7 +408,7 @@ protected function removeEmptyLines(&$html): void
422
408
/**
423
409
* Include configured header comment in HTML content block.
424
410
*/
425
- public function includeHeaderComment (&$ html ): void
411
+ public function includeHeaderComment (string &$ html ): void
426
412
{
427
413
$ html = preg_replace ('/^(-->)$/m ' , "\n\t" .$ this ->headerComment ."\n$1 " , $ html );
428
414
}
0 commit comments