private function get_reply_subject($subject) {
        $prefix = get_string('replysubjectprefix', 'tool_messageinbound');
        if (!(substr($subject, 0, strlen($prefix)) == $prefix)) {
            $subject = $prefix . ' ' . $subject;
        }

        return $subject;
    }
private function get_reply_subject($subject) {
        $prefix = get_string('replysubjectprefix', 'tool_messageinbound');
        if (!(substr($subject, 0, strlen($prefix)) == $prefix)) {
            $subject = $prefix . ' ' . $subject;
        }

        return $subject;
    }
private function get_reply_subject ( $ subject ) { $ prefix = get_string ( 'replysubjectprefix' , 'tool_messageinbound' ) ; if ( ! ( substr ( $ subject , 0 , strlen ( $ prefix ) ) == $ prefix ) ) { $ subject = $ prefix . ' ' . $ subject ; } return $ subject ; }
Return a formatted subject line for replies.

@param string $subject The subject string
@return string The formatted reply subject
Return a formatted subject line for replies .