@@ -116,8 +116,4 @@ |
||
116 | 116 | return [ |
117 | 117 | 'url' => $this->field->objectUrl($item), |
118 | 118 | 'value' => $item, |
119 | - 'is_file' => $field == File::class, |
|
120 | - ]; |
|
121 | - }); |
|
122 | - } |
|
123 | -} |
|
119 | + 'is_file' => $field |
|
124 | 120 | \ No newline at end of file |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | |
326 | 326 | libxml_use_internal_errors(true); |
327 | 327 | |
328 | - $dom->loadHTML('<?xml encoding="utf-8" ?>' . $str); |
|
328 | + $dom->loadHTML('<?xml encoding="utf-8" ?>'.$str); |
|
329 | 329 | |
330 | 330 | libxml_use_internal_errors(false); |
331 | 331 | |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | } |
335 | 335 | |
336 | 336 | if ($script = $dom->getElementsByTagName('script')[0]) { |
337 | - static::script(';(function () {' . $script->nodeValue . '})();'); |
|
337 | + static::script(';(function () {'.$script->nodeValue.'})();'); |
|
338 | 338 | } |
339 | 339 | |
340 | 340 | if ($element = $dom->getElementsByTagName('template')[0]) { |