src/Render/LocalSvgRenderer.php
private function buildParameters(Badge $badge)
    {
        $parameters = array();

        $parameters['vendorWidth'] = $this->stringWidth($badge->getSubject());
        $parameters['valueWidth'] = $this->stringWidth($badge->getStatus());
        $parameters['totalWidth'] = $parameters['valueWidth'] + $parameters['vendorWidth'];
        $parameters['vendorColor'] = static::VENDOR_COLOR;
        $parameters['valueColor'] = $badge->getHexColor();
        $parameters['vendor'] = $badge->getSubject();
        $parameters['value'] = $badge->getStatus();
        $parameters['vendorStartPosition'] = round($parameters['vendorWidth'] / 2, 1) + 1;
        $parameters['valueStartPosition'] = $parameters['vendorWidth'] + round($parameters['valueWidth'] / 2, 1) - 1;

        return $parameters;
    }
private function buildParameters(Badge $badge)
    {
        $parameters = array();

        $parameters['vendorWidth'] = $this->stringWidth($badge->getSubject());
        $parameters['valueWidth'] = $this->stringWidth($badge->getStatus());
        $parameters['totalWidth'] = $parameters['valueWidth'] + $parameters['vendorWidth'];
        $parameters['vendorColor'] = static::VENDOR_COLOR;
        $parameters['valueColor'] = $badge->getHexColor();
        $parameters['vendor'] = $badge->getSubject();
        $parameters['value'] = $badge->getStatus();
        $parameters['vendorStartPosition'] = round($parameters['vendorWidth'] / 2, 1) + 1;
        $parameters['valueStartPosition'] = $parameters['vendorWidth'] + round($parameters['valueWidth'] / 2, 1) - 1;

        return $parameters;
    }
@param Badge $badge

@return array