<commit_before><?php

class Zenc_EmailLogger_Block_Render_Html
    extends Mage_Core_Block_Abstract
    implements Zenc_EmailLogger_Block_Render_Interface
{
    public function getContentType()
    {
        return 'text/html';
    }

    protected function _toHtml()
    {
        $data = $this->getValue();

        switch (true) {
            case !empty(trim($data['body_html'])):
                return $data['body_html'];
            case !empty(trim($data['body_text'])):
                return $data['body_text'];
            default:
                return 'Email has no visible content';
        }
    }
}
<commit_msg>Fix return value in write context<commit_after><?php

class Zenc_EmailLogger_Block_Render_Html
    extends Mage_Core_Block_Abstract
    implements Zenc_EmailLogger_Block_Render_Interface
{
    public function getContentType()
    {
        return 'text/html';
    }

    protected function _toHtml()
    {
        $data = $this->getValue();

        switch (true) {
            case !empty($data['body_html']):
                return $data['body_html'];
            case !empty($data['body_text']):
                return $data['body_text'];
            default:
                return 'Email has no visible content';
        }
    }
}

{'fraction_non_alphanumeric': 0.1060126582278481, 'fraction_numerical': 0.0, 'mean_word_length': 2.178391959798995, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4521605', 'n_tokens_mistral': 358, 'n_tokens_neox': 351, 'n_words': 73}