Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
voku authored and StyleCIBot committed Dec 2, 2017
1 parent 30f973f commit 2501790
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/voku/helper/HtmlMin.php
Expand Up @@ -576,7 +576,7 @@ protected function domNodeToString(\DOMNode $node): string

// needed?
} else if ($child instanceof \DOMElement) {
} elseif ($child instanceof \DOMElement) {

$htmlstr .= trim('<' . $child->tagName . ' ' . $this->domNodeAttributesToString($child));
$htmlstr .= '>' . $this->domNodeToString($child);
Expand All @@ -585,7 +585,7 @@ protected function domNodeToString(\DOMNode $node): string
$htmlstr .= '</' . $child->tagName . '>';
}

} else if ($child instanceof \DOMText) {
} elseif ($child instanceof \DOMText) {

if ($child->isWhitespaceInElementContent()) {
if (
Expand All @@ -599,7 +599,7 @@ protected function domNodeToString(\DOMNode $node): string
$htmlstr .= $child->wholeText;
}

} else if ($child instanceof \DOMComment) {
} elseif ($child instanceof \DOMComment) {

$htmlstr .= $child->wholeText;

Expand Down
4 changes: 2 additions & 2 deletions tests/HtmlMinTest.php
Expand Up @@ -61,7 +61,7 @@ public function providerMultipleSpaces()
],
[
"<html><body> pre \r\n suf\r\n </body>",
"<html><body> pre suf",
'<html><body> pre suf',
],
];
}
Expand All @@ -82,7 +82,7 @@ public function providerNewLinesTabsReturns()
],
[
"<html><p>abc\r\ndef</p></html>",
"<html><p>abc def",
'<html><p>abc def',
],
];
}
Expand Down

0 comments on commit 2501790

Please sign in to comment.