Skip to content

Commit 2d1ead5

Browse files
committed
Fix coding standard.
1 parent bcd3764 commit 2d1ead5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Helper.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ public static function domNodeToArray($node): array|string
4545
$output = is_string($v) ? $v : implode(',', $v);
4646
}
4747
}
48-
if ($node->attributes !== null && $node->attributes->length > 0 && !is_array($output)) { // has attributes but isn't an array
48+
if (
49+
$node->attributes !== null
50+
&& $node->attributes->length > 0
51+
&& !is_array($output)
52+
) { // has attributes but isn't an array
4953
$output = ['@content' => $output]; // change output into an array.
5054
}
5155
if (is_array($output)) {

0 commit comments

Comments
 (0)