Code Duplication    Length = 12-12 lines in 2 locations

src/Http/Clients/JetSmsHttpClient.php 2 locations

@@ 76-87 (lines=12) @@
73
     *
74
     * @return JetSmsResponseInterface
75
     */
76
    public function sendShortMessage(ShortMessage $shortMessage)
77
    {
78
        $guzzleResponse = $this->httpClient->request('POST', $this->url, [
79
            'form_params' => array_merge(
80
                $shortMessage->toArray(),
81
                $this->getSendDate(),
82
                $this->getCredentials()
83
            ),
84
        ]);
85
86
        return new JetSmsHttpResponse((string) $guzzleResponse->getBody());
87
    }
88
89
    /**
90
     * Send multiple short messages using the JetSms services.
@@ 96-107 (lines=12) @@
93
     *
94
     * @return JetSmsResponseInterface
95
     */
96
    public function sendShortMessages(ShortMessageCollection $shortMessageCollection)
97
    {
98
        $guzzleResponse = $this->httpClient->request('POST', $this->url, [
99
            'form_params' => array_merge(
100
                $shortMessageCollection->toArray(),
101
                $this->getSendDate(),
102
                $this->getCredentials()
103
            ),
104
        ]);
105
106
        return new JetSmsHttpResponse((string) $guzzleResponse->getBody());
107
    }
108
109
    /**
110
     * Get the send date of the contents.