Passed
Push — main ( 1e7c3f...356a9e )
by Sammy
07:23
created
src/Form.php 1 patch
Braces   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -200,13 +200,14 @@
 block discarded – undo
200 200
         $input = new Element($tag, $content, $attributes, false);
201 201
 
202 202
         if($label_text){
203
-            if (!empty($attributes['label-wrap']))
204
-                $ret = self::label(null, $label_text.$input);
205
-            else
206
-                $ret = self::label($attributes['id'], $label_text).$input;
203
+            if (!empty($attributes['label-wrap'])) {
204
+                            $ret = self::label(null, $label_text.$input);
205
+            } else {
206
+                            $ret = self::label($attributes['id'], $label_text).$input;
207
+            }
208
+        } else {
209
+                    $ret = $input;
207 210
         }
208
-        else
209
-            $ret = $input;
210 211
 
211 212
         return (string)$ret;
212 213
     }
Please login to merge, or discard this patch.