Completed
Push — master ( 5978c7...5a86a1 )
by Gabor
12:24
created
src/WebHemi/Form/FormElement.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -216,13 +216,13 @@  discard block
 block discarded – undo
216 216
         $name = $this->name;
217 217
 
218 218
         if (isset($this->parentNode)) {
219
-            $name = $this->parentNode->getName() . '[' . $this->name . ']';
219
+            $name = $this->parentNode->getName().'['.$this->name.']';
220 220
         } elseif (!empty($this->uniqueFormNamePostfix)) {
221
-            $name .= '_' . $this->uniqueFormNamePostfix;
221
+            $name .= '_'.$this->uniqueFormNamePostfix;
222 222
         }
223 223
 
224 224
         if (count($this->options) > 1
225
-            && $this->tagName  == self::TAG_SELECT
225
+            && $this->tagName == self::TAG_SELECT
226 226
             && !empty($this->attributes['multiple'])
227 227
         ) {
228 228
             $name .= '[]';
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      */
239 239
     public function getId()
240 240
     {
241
-        return 'id_' . trim(preg_replace('/[^a-z0-9]/', '_', $this->getName()), '_');
241
+        return 'id_'.trim(preg_replace('/[^a-z0-9]/', '_', $this->getName()), '_');
242 242
     }
243 243
 
244 244
     /**
Please login to merge, or discard this patch.