Passed
Push — main ( f0e9e1...b967d0 )
by Sammy
07:14
created
src/Element.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -309,8 +309,9 @@
 block discarded – undo
309 309
         // second argument, an array for HTML attributes
310 310
         $attributes = $arguments[1] ?? [];
311 311
 
312
-        if(is_string($content))
313
-            return new Element($tag, $content, $attributes);
312
+        if(is_string($content)) {
313
+                    return new Element($tag, $content, $attributes);
314
+        }
314 315
 
315 316
         throw new InvalidArgumentException('missing content or content not a string');
316 317
     }
Please login to merge, or discard this patch.