Normalize calls to implode()

This commit is contained in:
Giuseppe Criscione 2021-07-07 18:04:28 +02:00
parent e3b10cc335
commit cfb3693e1c
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ abstract class AbstractController extends BaseAbstractController
'location' => $this->name,
'admin' => $this->admin(),
'csrfToken' => CSRFToken::get(),
'modals' => implode($this->modals),
'modals' => implode('', $this->modals),
'colorScheme' => $this->getColorScheme(),
'appConfig' => JSON::encode([
'baseUri' => $this->admin()->panelUri(),

View File

@ -61,7 +61,7 @@ class HTML
if (static::isVoid($name)) {
throw new InvalidArgumentException(sprintf('Cannot set tag content, <%s> is a void element', $name));
}
$html .= implode($content);
$html .= implode('', $content);
}
if (!static::isVoid($name)) {
$html .= '</' . $name . '>';