@@ -274,30 +274,30 @@ protected function prepareEmail(): array
274
274
275
275
$ attachmentArray = [];
276
276
foreach ($ attachments as $ file ) {
277
- if (array_key_exists ('name ' , $ file ) && array_key_exists ('contentBytes ' , $ file )) {
278
- $ attachmentArray [] = [
279
- '@odata.type ' => '#microsoft.graph.fileAttachment ' ,
280
- 'name ' => $ file ['name ' ],
281
- 'contentBytes ' => $ file ['contentBytes ' ],
282
- ];
283
- } else {
284
- $ path = pathinfo ($ file );
285
-
286
- $ attachmentArray [] = [
287
- '@odata.type ' => '#microsoft.graph.fileAttachment ' ,
288
- 'name ' => $ path ['basename ' ],
289
- 'contentType ' => mime_content_type ($ file ),
290
- 'contentBytes ' => base64_encode (file_get_contents ($ file )),
291
- ];
292
- }
277
+ if (array_key_exists ('name ' , $ file ) && array_key_exists ('contentBytes ' , $ file )) {
278
+ $ attachmentArray [] = [
279
+ '@odata.type ' => '#microsoft.graph.fileAttachment ' ,
280
+ 'name ' => $ file ['name ' ],
281
+ 'contentBytes ' => $ file ['contentBytes ' ],
282
+ ];
283
+ } else {
284
+ $ path = pathinfo ($ file );
285
+
286
+ $ attachmentArray [] = [
287
+ '@odata.type ' => '#microsoft.graph.fileAttachment ' ,
288
+ 'name ' => $ path ['basename ' ],
289
+ 'contentType ' => mime_content_type ($ file ),
290
+ 'contentBytes ' => base64_encode (file_get_contents ($ file )),
291
+ ];
292
+ }
293
293
}
294
294
295
295
$ singleValueExtendedPropertiesarray = [];
296
296
foreach ($ singleValueExtendedProperties as $ value ) {
297
- $ singleValueExtendedPropertiesarray [] = [
298
- 'id ' => $ value ['id ' ],
299
- 'value ' => $ value ['value ' ],
300
- ];
297
+ $ singleValueExtendedPropertiesarray [] = [
298
+ 'id ' => $ value ['id ' ],
299
+ 'value ' => $ value ['value ' ],
300
+ ];
301
301
}
302
302
303
303
$ envelope = [];
0 commit comments