Skip to content

Commit 961fd38

Browse files
committed
PHP CS Fixer
1 parent 8b398d3 commit 961fd38

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

Classes/Service/CleanHtmlService.php

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -356,12 +356,8 @@ protected function killLineBreaks($html)
356356

357357
/**
358358
* Remove multiple white space, keeps line breaks.
359-
*
360-
* @param string $html
361-
*
362-
* @return string
363359
*/
364-
protected function killWhiteSpace($html)
360+
protected function killWhiteSpace(string $html): string
365361
{
366362
$temp = explode($this->newline, $html);
367363
for ($i = 0; $i < \count($temp); ++$i) {
@@ -379,34 +375,24 @@ protected function killWhiteSpace($html)
379375

380376
/**
381377
* Remove white space at the end of lines, keeps other white space and line breaks.
382-
*
383-
* @param string $html
384-
*
385-
* @return string
386378
*/
387-
protected function rTrimLines(&$html)
379+
protected function rTrimLines(string &$html): void
388380
{
389381
$html = preg_replace('/\s+$/m', '', $html);
390382
}
391383

392384
/**
393385
* Convert newlines according to the current OS.
394-
*
395-
* @param string $html
396-
*
397-
* @return string
398386
*/
399-
protected function convNlOs(&$html)
387+
protected function convNlOs(string &$html): void
400388
{
401389
$html = preg_replace("(\r\n|\r)", $this->newline, $html);
402390
}
403391

404392
/**
405393
* Remove empty lines.
406-
*
407-
* @param string $html
408394
*/
409-
protected function removeEmptyLines(&$html): void
395+
protected function removeEmptyLines(string &$html): void
410396
{
411397
$temp = explode($this->newline, $html);
412398
$result = [];
@@ -422,7 +408,7 @@ protected function removeEmptyLines(&$html): void
422408
/**
423409
* Include configured header comment in HTML content block.
424410
*/
425-
public function includeHeaderComment(&$html): void
411+
public function includeHeaderComment(string &$html): void
426412
{
427413
$html = preg_replace('/^(-->)$/m', "\n\t".$this->headerComment."\n$1", $html);
428414
}

0 commit comments

Comments
 (0)