Completed
Push — master ( 5ff101...73de08 )
by Gabor
08:09
created
src/WebHemi/Form/Element/FormElement.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,11 +68,11 @@  discard block
 block discarded – undo
68 68
         $name = $this->name;
69 69
 
70 70
         if ($this->parentNode instanceof FormElementInterface) {
71
-            $name = $this->parentNode->getName() . '[' . $this->name . ']';
71
+            $name = $this->parentNode->getName().'['.$this->name.']';
72 72
         }
73 73
 
74 74
         if (count($this->options) > 1
75
-            && $this->tagName  == self::TAG_SELECT
75
+            && $this->tagName == self::TAG_SELECT
76 76
             && !empty($this->attributes['multiple'])
77 77
         ) {
78 78
             $name .= '[]';
@@ -119,10 +119,10 @@  discard block
 block discarded – undo
119 119
 
120 120
         // Rip off the unique form prefix to make possible to work with fixed CSS id selectors.
121 121
         if (preg_match('/^[a-z0-9]+\_(?P<md5>[a-f0-9]{32}).*$/', $name, $md5Match)) {
122
-            $name = str_replace('_' . $md5Match['md5'], '', $name);
122
+            $name = str_replace('_'.$md5Match['md5'], '', $name);
123 123
         }
124 124
 
125
-        return 'id_' . trim(preg_replace('/[^a-z0-9]/', '_', $name), '_');
125
+        return 'id_'.trim(preg_replace('/[^a-z0-9]/', '_', $name), '_');
126 126
     }
127 127
 
128 128
     /**
Please login to merge, or discard this patch.