Skip to content

Commit 1318854

Browse files
committed
add explicit if() braces
1 parent 8552403 commit 1318854

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Mf2/Parser.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,9 @@ public function parseE(\DOMElement $e) {
853853
}
854854
$html = $e->ownerDocument->saveHtml($innerNodes);
855855
// Put the nodes back in place.
856-
if($innerNodes->hasChildNodes())
856+
if($innerNodes->hasChildNodes()) {
857857
$e->appendChild($innerNodes);
858+
}
858859

859860
$return = array(
860861
'html' => unicodeTrim($html),

0 commit comments

Comments
 (0)