protected function multipartFinalize(Array $multiparts = []) {
    $contents = '';
    foreach ($multiparts as $multipart) {
      $contents .= $multipart;
    }
    $contents .= '--' . $this->boundary  . '--';
    $contents .= static::EOL;
    return $contents;
  }
protected function multipartFinalize(Array $multiparts = []) {
    $contents = '';
    foreach ($multiparts as $multipart) {
      $contents .= $multipart;
    }
    $contents .= '--' . $this->boundary  . '--';
    $contents .= static::EOL;
    return $contents;
  }
protected function multipartFinalize ( Array $ multiparts = [ ] ) { $ contents = '' ; foreach ( $ multiparts as $ multipart ) { $ contents .= $ multipart ; } $ contents .= '--' . $ this -> boundary . '--' ; $ contents .= static :: EOL ; return $ contents ; }
Finalize multipart data.

@param (array) $multiparts Multipart data with its headers.

@return (string) Raw HTTP multipart data formatted according to the RFC.

@see https://www.ietf.org/rfc/rfc2388.txt
Finalize multipart data .