src/Viserio/Component/Profiler/AssetsRenderer.php
public function render(): string
    {
        if (($urlGenerator = $this->profiler->getUrlGenerator()) !== null) {
            $cssRoute = $urlGenerator->generate('profiler.assets.css', [
                'v' => $this->getModifiedTime('css'),
            ]);
            $jsRoute = $urlGenerator->generate('profiler.assets.js', [
                'v' => $this->getModifiedTime('js'),
            ]);

            $html = \sprintf(
                '<link rel="stylesheet" type="text/css" property="stylesheet" href="%s">',
                \preg_replace('/\Ahttps?:/', '', $cssRoute)
            );
            $html .= \sprintf(
                '<script type="text/javascript" src="%s"></script>',
                \preg_replace('/\Ahttps?:/', '', $jsRoute)
            );

            return $html;
        }

        return $this->renderIntoHtml();
    }
public function render(): string
    {
        if (($urlGenerator = $this->profiler->getUrlGenerator()) !== null) {
            $cssRoute = $urlGenerator->generate('profiler.assets.css', [
                'v' => $this->getModifiedTime('css'),
            ]);
            $jsRoute = $urlGenerator->generate('profiler.assets.js', [
                'v' => $this->getModifiedTime('js'),
            ]);

            $html = \sprintf(
                '<link rel="stylesheet" type="text/css" property="stylesheet" href="%s">',
                \preg_replace('/\Ahttps?:/', '', $cssRoute)
            );
            $html .= \sprintf(
                '<script type="text/javascript" src="%s"></script>',
                \preg_replace('/\Ahttps?:/', '', $jsRoute)
            );

            return $html;
        }

        return $this->renderIntoHtml();
    }
{@inheritdoc}