File tree 1 file changed +9
-17
lines changed 1 file changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -183,22 +183,6 @@ public function getHeaders()
183
183
return $ headers ;
184
184
}
185
185
186
- /**
187
- * Send the request
188
- *
189
- * @return ResponseInterface
190
- */
191
- public function send ()
192
- {
193
- $ data = $ this ->getData ();
194
- $ headers = array_merge (
195
- $ this ->getHeaders (),
196
- array ('Authorization ' => 'Basic ' . base64_encode ($ this ->getApiKey () . ': ' ))
197
- );
198
-
199
- return $ this ->sendData ($ data , $ headers );
200
- }
201
-
202
186
/**
203
187
* @param $data
204
188
* @param array $headers
@@ -234,8 +218,16 @@ function ($event) {
234
218
return $ httpRequest ;
235
219
}
236
220
237
- public function sendData ($ data , array $ headers = null )
221
+ /**
222
+ * {@inheritdoc}
223
+ */
224
+ public function sendData ($ data )
238
225
{
226
+ $ headers = array_merge (
227
+ $ this ->getHeaders (),
228
+ array ('Authorization ' => 'Basic ' . base64_encode ($ this ->getApiKey () . ': ' ))
229
+ );
230
+
239
231
$ httpRequest = $ this ->createClientRequest ($ data , $ headers );
240
232
$ httpResponse = $ httpRequest ->send ();
241
233
You can’t perform that action at this time.
0 commit comments