[SPARK-3781] code Style format

correct style should be
```
def copyStream(
    in: InputStream,
    out: OutputStream,
    closeStreams: Boolean = false): Long = {
  ...
}
```