@@ -68,11 +68,11 @@ discard block |
||
| 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 |
||
| 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 | /** |