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

Commit 33133b1

Browse files
committed
- add a little documentation for a special Case
1 parent ea63485 commit 33133b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DeepL.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ private function removeEmptyParams($paramsArray)
293293
if (true === empty($value)) {
294294
unset($paramsArray[$key]);
295295
}
296+
// Special Workaround for outline_detection which will be unset above
297+
// DeepL assumes outline_detection=1 if it is not send
298+
// in order to deactivate it, we need to send outline_detection=0 to the api
296299
if ('outline_detection' === $key) {
297300
if (1 === $value) {
298301
unset($paramsArray[$key]);

0 commit comments

Comments
 (0)