Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9375794

Browse files
committed
- remove unessesarry $resource-parameter from translate-function
1 parent 9182dc8 commit 9375794

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/DeepL.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ public function languages()
222222
* @param string $tagHandling
223223
* @param array|null $ignoreTags
224224
* @param string $formality
225-
* @param string $resource
226225
* @param null $splitSentences
227226
* @param null $preserveFormatting
228227
* @param array|null $nonSplittingTags
@@ -241,7 +240,6 @@ public function translate(
241240
$tagHandling = null,
242241
array $ignoreTags = null,
243242
$formality = 'default',
244-
$resource = self::API_URL_RESOURCE_TRANSLATE,
245243
$splitSentences = null,
246244
$preserveFormatting = null,
247245
array $nonSplittingTags = null,
@@ -266,7 +264,7 @@ public function translate(
266264
// make sure we only accept supported languages
267265
$this->checkLanguages($sourceLanguage, $destinationLanguage);
268266

269-
$url = $this->buildBaseUrl($resource);
267+
$url = $this->buildBaseUrl();
270268
$body = $this->buildQuery($paramsArray);
271269

272270
// request the DeepL API

0 commit comments

Comments
 (0)