original_string: protected function multipartPart(Array $attributes, $mimetype = null, $contents = null) {
      $multipart = '';
      $headers = [];
      foreach ($attributes as $name => $value) {
        $headers[] = $name . '=' . $value;
      }
      // Generate multipart data and contents.
      $multipart .= '--' . $this->boundary . static::EOL;
      $multipart .= 'Content-Type: ' . $mimetype . static::EOL;
      $multipart .= 'Content-Disposition: form-data; ' . join('; ', $headers) . static::EOL;
      $multipart .= static::EOL . $contents . static::EOL;
      return $multipart;
    }
code: protected function multipartPart(Array $attributes, $mimetype = null, $contents = null) {
      $multipart = '';
      $headers = [];
      foreach ($attributes as $name => $value) {
        $headers[] = $name . '=' . $value;
      }
      // Generate multipart data and contents.
      $multipart .= '--' . $this->boundary . static::EOL;
      $multipart .= 'Content-Type: ' . $mimetype . static::EOL;
      $multipart .= 'Content-Disposition: form-data; ' . join('; ', $headers) . static::EOL;
      $multipart .= static::EOL . $contents . static::EOL;
      return $multipart;
    }
code_tokens: protected function multipartPart ( Array $ attributes , $ mimetype = null , $ contents = null ) { $ multipart = '' ; $ headers = [ ] ; foreach ( $ attributes as $ name => $ value ) { $ headers [ ] = $ name . '=' . $ value ; } // Generate multipart data and contents. $ multipart .= '--' . $ this -> boundary . static :: EOL ; $ multipart .= 'Content-Type: ' . $ mimetype . static :: EOL ; $ multipart .= 'Content-Disposition: form-data; ' . join ( '; ' , $ headers ) . static :: EOL ; $ multipart .= static :: EOL . $ contents . static :: EOL ; return $ multipart ; }
docstring: Generate individual multipart data parts.
  
  @param (array) $attributes Associative array with information about each file (mimetype, filename, size).
  @param (string) $mimetype Multipart mime type.
  @param (string) $contents Contents of the multipart content chunk.
  
  @return (string) Raw HTTP multipart chunk formatted according to the RFC.
  
  @see https://www.ietf.org/rfc/rfc2388.txt
docstring_tokens: Generate individual multipart data parts .