code: public static function applyStyle($text, $style)
      {
          $foreground = self::getForeground($style);
          $background = self::getBackground($style);
          return self::apply($text, $foreground, $background);
      }
docs: Apply style.
  
  @param string $text
  @param string $style
  @return string