src/Viserio/Component/Profiler/AssetsRenderer.php
public function getAssets(?string $type = null): array
    {
        $cssFiles = \array_map(
            function ($css) {
                return \rtrim($this->rootPath, \DIRECTORY_SEPARATOR) . \DIRECTORY_SEPARATOR . $css;
            },
            $this->cssFiles
        );

        if ($this->jqueryIsUsed) {
            $this->jsFiles = \array_diff($this->jsFiles, ['js' . \DIRECTORY_SEPARATOR . 'zepto.min.js']);
        }

        $jsFiles = \array_map(
            function ($js) {
                return \rtrim($this->rootPath, \DIRECTORY_SEPARATOR) . \DIRECTORY_SEPARATOR . $js;
            },
            $this->jsFiles
        );

        $additionalAssets = \array_filter(
            \array_map(
                function ($collector) {
                    $collector = $collector['collector'];

                    if ($collector instanceof AssetAwareContract && ! \in_array($collector->getName(), $this->ignoredCollectors, true)) {
                        return $collector->getAssets();
                    }
                },
                $this->profiler->getCollectors()
            )
        );

        foreach ($additionalAssets as $assets) {
            if (isset($assets['css'])) {
                $cssFiles = \array_merge($cssFiles, (array) $assets['css']);
            }

            if (isset($assets['js'])) {
                $jsFiles = \array_merge($jsFiles, (array) $assets['js']);
            }
        }

        return $this->filterAssetArray([$cssFiles, $jsFiles], $type);
    }
public function getAssets(?string $type = null): array
    {
        $cssFiles = \array_map(
            function ($css) {
                return \rtrim($this->rootPath, \DIRECTORY_SEPARATOR) . \DIRECTORY_SEPARATOR . $css;
            },
            $this->cssFiles
        );

        if ($this->jqueryIsUsed) {
            $this->jsFiles = \array_diff($this->jsFiles, ['js' . \DIRECTORY_SEPARATOR . 'zepto.min.js']);
        }

        $jsFiles = \array_map(
            function ($js) {
                return \rtrim($this->rootPath, \DIRECTORY_SEPARATOR) . \DIRECTORY_SEPARATOR . $js;
            },
            $this->jsFiles
        );

        $additionalAssets = \array_filter(
            \array_map(
                function ($collector) {
                    $collector = $collector['collector'];

                    if ($collector instanceof AssetAwareContract && ! \in_array($collector->getName(), $this->ignoredCollectors, true)) {
                        return $collector->getAssets();
                    }
                },
                $this->profiler->getCollectors()
            )
        );

        foreach ($additionalAssets as $assets) {
            if (isset($assets['css'])) {
                $cssFiles = \array_merge($cssFiles, (array) $assets['css']);
            }

            if (isset($assets['js'])) {
                $jsFiles = \array_merge($jsFiles, (array) $assets['js']);
            }
        }

        return $this->filterAssetArray([$cssFiles, $jsFiles], $type);
    }
{@inheritdoc}