File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -213,9 +213,8 @@ private function execute($context = null): void
213
213
continue ;
214
214
}
215
215
216
- $ fragment = $ this ->doc ->createDocumentFragment ()->appendXML (
217
- $ this ->eval ($ value , $ elem )
218
- );
216
+ $ fragment = $ this ->doc ->createDocumentFragment ();
217
+ $ fragment ->appendXML ( $ this ->eval ($ value , $ elem ) );
219
218
$ elem ->nodeValue = '' ;
220
219
$ elem ->appendChild ($ fragment );
221
220
@@ -274,9 +273,8 @@ private function execute($context = null): void
274
273
275
274
$ selector = "data-var-html " ;
276
275
foreach ($ this ->xpath ->query ("descendant-or-self::*[@ $ selector] " , $ context ) as $ elem ) {
277
- $ fragment = $ this ->doc ->createDocumentFragment ()->appendXML (
278
- $ this ->eval ($ elem ->getAttribute ($ selector ), $ elem )
279
- );
276
+ $ fragment = $ this ->doc ->createDocumentFragment ();
277
+ $ fragment ->appendXML ( $ this ->eval ($ elem ->getAttribute ($ selector ), $ elem ) );
280
278
$ elem ->nodeValue = '' ;
281
279
$ elem ->appendChild ($ fragment );
282
280
You can’t perform that action at this time.
0 commit comments