src/Viserio/Component/HttpFoundation/DataCollector/ViserioHttpDataCollector.php
public function getMenu(): array
    {
        $statusCode = $this->response->getStatusCode();
        $status     = '';

        // Successful 2xx
        if ($statusCode >= 200 && $statusCode <= 226) {
            $status = 'response-status-green';
        // Redirection 3xx
        } elseif ($statusCode >= 300 && $statusCode <= 308) {
            $status = 'response-status-yellow';
        // Client Error 4xx
        } elseif ($statusCode >= 400 && $statusCode <= 511) {
            $status = 'response-status-red';
        }

        $tabInfos = [
            'label' => $statusCode,
            'class' => $status,
            'value' => '',
        ];

        if ($this->route !== null && $this->route->getName() !== null) {
            return \array_merge(
                $tabInfos,
                [
                    'label' => '@',
                    'value' => $this->route->getName(),
                ]
            );
        }

        if ($this->route !== null) {
            return \array_merge(
                $tabInfos,
                [
                    'value' => \implode(' | ', $this->route->getMethods()),
                ]
            );
        }

        return $tabInfos;
    }
public function getMenu(): array
    {
        $statusCode = $this->response->getStatusCode();
        $status     = '';

        // Successful 2xx
        if ($statusCode >= 200 && $statusCode <= 226) {
            $status = 'response-status-green';
        // Redirection 3xx
        } elseif ($statusCode >= 300 && $statusCode <= 308) {
            $status = 'response-status-yellow';
        // Client Error 4xx
        } elseif ($statusCode >= 400 && $statusCode <= 511) {
            $status = 'response-status-red';
        }

        $tabInfos = [
            'label' => $statusCode,
            'class' => $status,
            'value' => '',
        ];

        if ($this->route !== null && $this->route->getName() !== null) {
            return \array_merge(
                $tabInfos,
                [
                    'label' => '@',
                    'value' => $this->route->getName(),
                ]
            );
        }

        if ($this->route !== null) {
            return \array_merge(
                $tabInfos,
                [
                    'value' => \implode(' | ', $this->route->getMethods()),
                ]
            );
        }

        return $tabInfos;
    }
{@inheritdoc}