src/Viserio/Component/Profiler/DataCollector/AbstractDataCollector.php
protected function createTooltipGroup(array $data): string
    {
        $tooltip = '<div class="profiler-menu-tooltip-group">';

        foreach ($data as $strong => $infos) {
            $tooltip .= '<div class="profiler-menu-tooltip-group-piece">';

            if (\is_array($infos)) {
                $tooltip .= '<b>' . $strong . '</b>';

                foreach ($infos as $info) {
                    $class = isset($info['class']) ? ' class="' . $info['class'] . '"' : '';

                    $tooltip .= '<span' . $class . '>' . $info['value'] . '</span>';
                }
            } elseif (\is_int($strong) && \is_string($infos)) {
                $tooltip .= $infos;
            } else {
                $tooltip .= '<b>' . $strong . '</b><span>' . $infos . '</span>';
            }

            $tooltip .= '</div>';
        }

        $tooltip .= '</div>';

        return $tooltip;
    }
protected function createTooltipGroup(array $data): string
    {
        $tooltip = '<div class="profiler-menu-tooltip-group">';

        foreach ($data as $strong => $infos) {
            $tooltip .= '<div class="profiler-menu-tooltip-group-piece">';

            if (\is_array($infos)) {
                $tooltip .= '<b>' . $strong . '</b>';

                foreach ($infos as $info) {
                    $class = isset($info['class']) ? ' class="' . $info['class'] . '"' : '';

                    $tooltip .= '<span' . $class . '>' . $info['value'] . '</span>';
                }
            } elseif (\is_int($strong) && \is_string($infos)) {
                $tooltip .= $infos;
            } else {
                $tooltip .= '<b>' . $strong . '</b><span>' . $infos . '</span>';
            }

            $tooltip .= '</div>';
        }

        $tooltip .= '</div>';

        return $tooltip;
    }
Creates a tooltip group from array.

array[]
['key']       string          Defines the name of <b> html element.
['value']     array|string    Defines the content to be shown in the <span> html element.
['class'] string          Adds a class to the <span> html element.
['value'] string          Adds the content.

@param array $data (See above)

@return string