Static analysis cleanup.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@ -81,9 +81,9 @@ class Rclone
|
||||
/**
|
||||
* Copy from source to destination.
|
||||
*
|
||||
* @param $src Source mount and path
|
||||
* @param $dest Destination mount and path
|
||||
* @param $additionalOptions strings[] Bandwidth limit provided as string
|
||||
* @param $src Source mount and path
|
||||
* @param $dest Destination mount and path
|
||||
* @param string[] $additionalOptions Additional options
|
||||
*
|
||||
* @return string Stdout from command
|
||||
*/
|
||||
@ -93,6 +93,7 @@ class Rclone
|
||||
|
||||
$options[] = $src;
|
||||
$options[] = $dest;
|
||||
|
||||
foreach ($additionalOptions as $key => $value) {
|
||||
if (strlen($key) == 1) {
|
||||
$options[] = '-' . $key;
|
||||
@ -100,8 +101,6 @@ class Rclone
|
||||
} elseif (strlen($key) > 2) {
|
||||
$options[] = '--' . $key;
|
||||
$options[] = $value;
|
||||
} else {
|
||||
$options[] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user