Passed
Push — main ( f09874...08f4c3 )
by Sammy
07:02
created
src/Element.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@
 block discarded – undo
42 42
             if(is_int($name))
43 43
             {
44 44
                 $this->$value = true;
45
-            }
46
-            else
45
+            } else
47 46
             {
48 47
                 $this->$name = $value;
49 48
             }
Please login to merge, or discard this patch.
src/Form.php 1 patch
Braces   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -202,13 +202,14 @@
 block discarded – undo
202 202
         $input = new Element($tag, $content, $attributes);
203 203
 
204 204
         if($label_text){
205
-            if (!empty($attributes['label-wrap']))
206
-                $ret = self::label(null, $label_text.$input);
207
-            else
208
-                $ret = self::label($attributes['id'], $label_text).$input;
205
+            if (!empty($attributes['label-wrap'])) {
206
+                            $ret = self::label(null, $label_text.$input);
207
+            } else {
208
+                            $ret = self::label($attributes['id'], $label_text).$input;
209
+            }
210
+        } else {
211
+                    $ret = $input;
209 212
         }
210
-        else
211
-            $ret = $input;
212 213
 
213 214
         return $ret;
214 215
     }
Please login to merge, or discard this patch.