src/Viserio/Component/Profiler/AssetsRenderer.php
protected function filterAssetArray(array $array, ?string $type = null): array
    {
        if (\is_string($type)) {
            $type = \mb_strtolower($type);

            if ($type === 'css') {
                return $array[0];
            }

            if ($type === 'js') {
                return $array[1];
            }
        }

        return $array;
    }
protected function filterAssetArray(array $array, ?string $type = null): array
    {
        if (\is_string($type)) {
            $type = \mb_strtolower($type);

            if ($type === 'css') {
                return $array[0];
            }

            if ($type === 'js') {
                return $array[1];
            }
        }

        return $array;
    }
Filters a tuple of (css, js) assets according to $type.

@param array       $array
@param null|string $type  'css', 'js' or null for both

@return array