@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | public function removeAttributes(): SimpleHtmlDomInterface |
172 | 172 | { |
173 | 173 | if ($this->hasAttributes()) { |
174 | - foreach (array_keys((array)$this->getAllAttributes()) as $attribute) { |
|
174 | + foreach (array_keys((array) $this->getAllAttributes()) as $attribute) { |
|
175 | 175 | $this->removeAttribute($attribute); |
176 | 176 | } |
177 | 177 | } |
@@ -194,8 +194,8 @@ discard block |
||
194 | 194 | $tmpStr = $this->normalizeStringForComparision($string); |
195 | 195 | if ($tmpDomString !== $tmpStr) { |
196 | 196 | throw new \RuntimeException( |
197 | - 'Not valid HTML fragment!' . "\n" . |
|
198 | - $tmpDomString . "\n" . |
|
197 | + 'Not valid HTML fragment!'."\n". |
|
198 | + $tmpDomString."\n". |
|
199 | 199 | $tmpStr |
200 | 200 | ); |
201 | 201 | } |
@@ -254,8 +254,8 @@ discard block |
||
254 | 254 | $tmpStr = $this->normalizeStringForComparision($string); |
255 | 255 | if ($tmpDomOuterTextString !== $tmpStr) { |
256 | 256 | throw new \RuntimeException( |
257 | - 'Not valid HTML fragment!' . "\n" |
|
258 | - . $tmpDomOuterTextString . "\n" . |
|
257 | + 'Not valid HTML fragment!'."\n" |
|
258 | + . $tmpDomOuterTextString."\n". |
|
259 | 259 | $tmpStr |
260 | 260 | ); |
261 | 261 | } |
@@ -999,6 +999,6 @@ discard block |
||
999 | 999 | */ |
1000 | 1000 | public function delete() |
1001 | 1001 | { |
1002 | - $this->outertext=''; |
|
1002 | + $this->outertext = ''; |
|
1003 | 1003 | } |
1004 | 1004 | } |