original_string: private function generateAttachmentField(string $title, $value): array
      {
          $value = is_array($value)
              ? sprintf('```%s```', $this->stringify($value))
              : $value;
  
          return array(
              'title' => ucfirst($title),
              'value' => $value,
              'short' => false,
          );
      }
code: private function generateAttachmentField(string $title, $value): array
      {
          $value = is_array($value)
              ? sprintf('```%s```', $this->stringify($value))
              : $value;
  
          return array(
              'title' => ucfirst($title),
              'value' => $value,
              'short' => false,
          );
      }
code_tokens: private function generateAttachmentField ( string $ title , $ value ) : array { $ value = is_array ( $ value ) ? sprintf ( '```%s```' , $ this -> stringify ( $ value ) ) : $ value ; return array ( 'title' => ucfirst ( $ title ) , 'value' => $ value , 'short' => false , ) ; }
docstring: Generates attachment field
  
  @param string|array $value
docstring_tokens: Generates attachment field