original_string: protected function buildView()
      {
          if (isset($this->html)) {
              return array_filter([
                  'html' => new HtmlString($this->html),
                  'text' => $this->textView ?? null,
              ]);
          }
  
          if (isset($this->markdown)) {
              return $this->buildMarkdownView();
          }
  
          if (isset($this->view, $this->textView)) {
              return [$this->view, $this->textView];
          } elseif (isset($this->textView)) {
              return ['text' => $this->textView];
          }
  
          return $this->view;
      }
code: protected function buildView()
      {
          if (isset($this->html)) {
              return array_filter([
                  'html' => new HtmlString($this->html),
                  'text' => $this->textView ?? null,
              ]);
          }
  
          if (isset($this->markdown)) {
              return $this->buildMarkdownView();
          }
  
          if (isset($this->view, $this->textView)) {
              return [$this->view, $this->textView];
          } elseif (isset($this->textView)) {
              return ['text' => $this->textView];
          }
  
          return $this->view;
      }
code_tokens: protected function buildView ( ) { if ( isset ( $ this -> html ) ) { return array_filter ( [ 'html' => new HtmlString ( $ this -> html ) , 'text' => $ this -> textView ?? null , ] ) ; } if ( isset ( $ this -> markdown ) ) { return $ this -> buildMarkdownView ( ) ; } if ( isset ( $ this -> view , $ this -> textView ) ) { return [ $ this -> view , $ this -> textView ] ; } elseif ( isset ( $ this -> textView ) ) { return [ 'text' => $ this -> textView ] ; } return $ this -> view ; }
docstring: Build the view for the message.
  
  @return array|string
  
  @throws \ReflectionException
docstring_tokens: Build the view for the message .