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,
        );
    }
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,
        );
    }
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 , ) ; }
Generates attachment field

@param string|array $value
Generates attachment field