protected function buildStyle(string $name, array $style, array $matches): array
    {
        foreach ($matches[0] as $i => $match) {
            $name  = \str_replace($match, '', $name);
            $type  = \strtolower($matches[1][$i]) ?: 'fg';

            if (\defined($color = static::class . '::' . \strtoupper($matches[2][$i]))) {
                $style += [$type => \constant($color)];
            }
        }

        return [\lcfirst($name) ?: 'line', $style];
    }
protected function buildStyle(string $name, array $style, array $matches): array
    {
        foreach ($matches[0] as $i => $match) {
            $name  = \str_replace($match, '', $name);
            $type  = \strtolower($matches[1][$i]) ?: 'fg';

            if (\defined($color = static::class . '::' . \strtoupper($matches[2][$i]))) {
                $style += [$type => \constant($color)];
            }
        }

        return [\lcfirst($name) ?: 'line', $style];
    }
protected function buildStyle ( string $ name , array $ style , array $ matches ) : array { foreach ( $ matches [ 0 ] as $ i => $ match ) { $ name = \ str_replace ( $ match , '' , $ name ) ; $ type = \ strtolower ( $ matches [ 1 ] [ $ i ] ) ? : 'fg' ; if ( \ defined ( $ color = static :: class . '::' . \ strtoupper ( $ matches [ 2 ] [ $ i ] ) ) ) { $ style += [ $ type => \ constant ( $ color ) ] ; } } return [ \ lcfirst ( $ name ) ? : 'line' , $ style ] ; }
Build style parameter from matching combination.

@param string $name
@param array  $style
@param array  $matches

@return array
Build style parameter from matching combination .