@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | 'autofocus' => [ 'button', 'input', 'keygen', 'select', 'textarea' ], |
114 | 114 | 'autoplay' => [ 'audio', 'video' ], |
115 | 115 | 'autosave' => [ 'input' ], |
116 | - 'bgcolor' => [ 'body', 'col', 'colgroup', 'table', 'tbody', 'tfoot','td', 'th', 'tr' ], |
|
116 | + 'bgcolor' => [ 'body', 'col', 'colgroup', 'table', 'tbody', 'tfoot', 'td', 'th', 'tr' ], |
|
117 | 117 | 'border' => [ 'img', 'object', 'table' ], |
118 | 118 | 'buffered' => [ 'audio', 'video' ], |
119 | 119 | 'challenge' => [ 'keygen' ], |
@@ -214,8 +214,8 @@ discard block |
||
214 | 214 | */ |
215 | 215 | public function __construct($value) |
216 | 216 | { |
217 | - if (! in_array($value, array_merge($this->global, array_keys($this->elements)))) { |
|
218 | - throw new \InvalidArgumentException('[' . $value . '] is not a valid HTML Attribute'); |
|
217 | + if (!in_array($value, array_merge($this->global, array_keys($this->elements)))) { |
|
218 | + throw new \InvalidArgumentException('['.$value.'] is not a valid HTML Attribute'); |
|
219 | 219 | } |
220 | 220 | |
221 | 221 | parent::__construct($value); |
@@ -151,8 +151,8 @@ |
||
151 | 151 | */ |
152 | 152 | public function __construct($value) |
153 | 153 | { |
154 | - if (! in_array($value, $this->elements)) { |
|
155 | - throw new \InvalidArgumentException('[' . $value . '] is not a valid HTML element'); |
|
154 | + if (!in_array($value, $this->elements)) { |
|
155 | + throw new \InvalidArgumentException('['.$value.'] is not a valid HTML element'); |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | parent::__construct($value); |