public function apply($element, string $type, string $context = ''): string
    {
        if (!empty($style = $this->getStyle($type, $context))) {
            return \Spiral\interpolate(
                $this->element,
                compact('style', 'element')
            );
        }

        return $element;
    }
public function apply($element, string $type, string $context = ''): string
    {
        if (!empty($style = $this->getStyle($type, $context))) {
            return \Spiral\interpolate(
                $this->element,
                compact('style', 'element')
            );
        }

        return $element;
    }
public function apply ( $ element , string $ type , string $ context = '' ) : string { if ( ! empty ( $ style = $ this -> getStyle ( $ type , $ context ) ) ) { return \ Spiral \ interpolate ( $ this -> element , compact ( 'style' , 'element' ) ) ; } return $ element ; }
Stylize content using pre-defined style.

@param string|null $element
@param string      $type
@param string      $context

@return string
Stylize content using pre - defined style .