@@ -60,7 +60,6 @@ class Client
6060
6161 /**
6262 * Client constructor requires:.
63- *
6463 * @param string $key Mailjet API Key
6564 * @param string|null $secret Mailjet API Secret
6665 * @param bool $call performs the call or not
@@ -73,7 +72,6 @@ public function __construct(string $key, string $secret = null, bool $call = tru
7372
7473 /**
7574 * Trigger a POST request.
76- *
7775 * @param array $resource Mailjet Resource/Action pair
7876 * @param array $args Request arguments
7977 * @param array $options
@@ -96,7 +94,6 @@ public function post(array $resource, array $args = [], array $options = []): Re
9694
9795 /**
9896 * Trigger a GET request.
99- *
10097 * @param array $resource Mailjet Resource/Action pair
10198 * @param array $args Request arguments
10299 * @param array $options
@@ -119,7 +116,6 @@ public function get(array $resource, array $args = [], array $options = []): Res
119116
120117 /**
121118 * Trigger a POST request.
122- *
123119 * @param array $resource Mailjet Resource/Action pair
124120 * @param array $args Request arguments
125121 * @param array $options
@@ -142,7 +138,6 @@ public function put(array $resource, array $args = [], array $options = []): Res
142138
143139 /**
144140 * Trigger a GET request.
145- *
146141 * @param array $resource Mailjet Resource/Action pair
147142 * @param array $args Request arguments
148143 * @param array $options
@@ -165,9 +160,7 @@ public function delete(array $resource, array $args = [], array $options = []):
165160
166161 /**
167162 * Sets if we need to use https or http protocol while using API Url.
168- *
169163 * @param bool|mixed $bIsSecured True use https / false use http
170- *
171164 * @return bool true if we set value false otherwise
172165 */
173166 public function setSecureProtocol ($ bIsSecured = null ): bool
@@ -229,12 +222,10 @@ public function getConnectionTimeout(): ?int
229222
230223 /**
231224 * Add a HTTP request option.
232- *
233225 * @param string $key
234226 * @param mixed $value
235227 * [IMPORTANT]Default options will be overwritten
236228 * if such option is provided
237- *
238229 * @see \GuzzleHttp\RequestOptions for a list of available request options.
239230 */
240231 public function addRequestOption (string $ key , $ value ): void
@@ -255,7 +246,6 @@ public function getRequestOptions(): array
255246
256247 /**
257248 * Set auth.
258- *
259249 * @param string $key
260250 * @param string|null $secret
261251 * @param bool $call
@@ -279,12 +269,10 @@ public function setAuthentication(string $key, ?string $secret, bool $call, arra
279269
280270 /**
281271 * Magic method to call a mailjet resource.
282- *
283272 * @param string $method Http method
284273 * @param string $resource mailjet resource
285274 * @param string $action mailjet resource action
286275 * @param array $args Request arguments
287- *
288276 * @return Response server response
289277 */
290278 private function _call (string $ method , string $ resource , string $ action , array $ args ): Response
@@ -296,7 +284,7 @@ private function _call(string $method, string $resource, string $action, array $
296284 'body ' => 'GET ' === $ method ? null : '{} ' ,
297285 ], array_change_key_case ($ args ));
298286
299- $ url = $ this ->buildURL ($ resource , $ action , (string ) $ args ['id ' ], $ args ['actionid ' ]);
287+ $ url = $ this ->buildURL ($ resource , $ action , (string )$ args ['id ' ], $ args ['actionid ' ]);
300288
301289 $ contentType = 'application/json ' ;
302290 if ('csvdata/text:plain ' === $ action ) {
@@ -324,7 +312,6 @@ private function _call(string $method, string $resource, string $action, array $
324312 /**
325313 * Build the base API url depending on wether user need a secure connection
326314 * or not.
327- *
328315 * @return string the API url;
329316 */
330317 private function getApiUrl (): string
@@ -337,7 +324,6 @@ private function getApiUrl(): string
337324 /**
338325 * Checks that both parameters are strings, which means
339326 * that basic authentication will be required.
340- *
341327 * @param mixed $key
342328 * @param mixed $secret
343329 * @return bool flag
@@ -349,12 +335,10 @@ private function isBasicAuthentication($key, $secret): bool
349335
350336 /**
351337 * Build the final call url without query strings.
352- *
353338 * @param string $resource Mailjet resource
354339 * @param string $action Mailjet resource action
355340 * @param string $id mailjet resource id
356341 * @param string $actionid mailjet resource actionid
357- *
358342 * @return string final call url
359343 */
360344 private function buildURL (string $ resource , string $ action , string $ id , string $ actionid ): string
@@ -376,7 +360,6 @@ private function buildURL(string $resource, string $action, string $id, string $
376360
377361 /**
378362 * Temporary set the variables generating the url.
379- *
380363 * @param array $options contain temporary modifications for the client
381364 * @param array $resource may contain the version linked to the resource
382365 */
0 commit comments