<commit_before><?php

namespace Silverstreet\One;

use Silverstreet\Request;
use Laravie\Codex\Support\MultipartRequest;

class Message extends Request
{
    use MultipartRequest;

    /**
     * Send SMS.
     *
     * @param  string  $body
     * @param  string  $destination
     * @param  string  $sender
     * @param  array  $optional
     *
     * @return \Laravie\Codex\Response
     */
    public function text($body, $destination, $sender, array $optional = [])
    {
        $body = array_merge(compact('body', 'destination', 'sender'), $optional);
        $headers['Content-Type'] = 'multipart/form-data';

        list($headers, $stream) = $this->prepareMultipartRequestPayloads(
            $this->mergeApiHeaders(['Content-Type' => 'multipart/form-data']),
            $this->mergeApiBody($body),
            []
        );

        return $this->send('POST', 'send.php', $headers, $stream);
    }
}<commit_msg>Remove duplicate code.<commit_after><?php

namespace Silverstreet\One;

use Silverstreet\Request;
use Laravie\Codex\Support\MultipartRequest;

class Message extends Request
{
    use MultipartRequest;

    /**
     * Send SMS.
     *
     * @param  string  $body
     * @param  string  $destination
     * @param  string  $sender
     * @param  array  $optional
     *
     * @return \Laravie\Codex\Response
     */
    public function text($body, $destination, $sender, array $optional = [])
    {
        $body = array_merge(compact('body', 'destination', 'sender'), $optional);

        list($headers, $stream) = $this->prepareMultipartRequestPayloads(
            $this->mergeApiHeaders(['Content-Type' => 'multipart/form-data']),
            $this->mergeApiBody($body),
            []
        );

        return $this->send('POST', 'send.php', $headers, $stream);
    }
}
{'fraction_non_alphanumeric': 0.14825097168239867, 'fraction_numerical': 0.0, 'mean_word_length': 2.6477732793522266, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '5282930', 'n_tokens_mistral': 553, 'n_tokens_neox': 537, 'n_words': 108}