original_string: protected function apply(string $text, bool $decorated) : string
      {
          return $decorated && !empty($text) ? $this->stack->current()->apply($text) : $text;
      }
code: protected function apply(string $text, bool $decorated) : string
      {
          return $decorated && !empty($text) ? $this->stack->current()->apply($text) : $text;
      }
code_tokens: protected function apply ( string $ text , bool $ decorated ) : string { return $ decorated && ! empty ( $ text ) ? $ this -> stack -> current ( ) -> apply ( $ text ) : $ text ; }
docstring: Applies formatting to the given text.
  
  @param   string  $text       The text that should be formatted.
  @param   bool    $decorated  Whether decorations, like colors, should be applied to the text.
  @return  string              The resulting text.
docstring_tokens: Applies formatting to the given text .